From b8e9a7eff7b9a2c209795bce7a7173318f4ae43c Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Tue, 2 Jul 2019 15:43:29 +0100 Subject: [PATCH] wrap: Call setlocale This ensures that we can display UTF-8, which recent GLib versions do unconditionally. Signed-off-by: Simon McVittie <smcv@collabora.com> --- src/wrap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wrap.c b/src/wrap.c index 2a3c16036..080dc2bc5 100644 --- a/src/wrap.c +++ b/src/wrap.c @@ -31,6 +31,7 @@ #include <X11/Xauth.h> +#include <locale.h> #include <stdlib.h> #include <sys/utsname.h> @@ -1543,6 +1544,7 @@ main (int argc, const gchar *bwrap_help_argv[] = { "<bwrap>", "--help", NULL }; GSpawnFlags spawn_flags = G_SPAWN_DO_NOT_REAP_CHILD; + setlocale (LC_ALL, ""); pv_avoid_gvfs (); g_set_prgname ("pressure-vessel-wrap"); -- GitLab