From ce3f740e9493e22e93eacabf8c7057624e3bdf03 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 11 Jul 2018 10:54:43 +0200 Subject: [PATCH] autotools: Use LANG=C.UTF-8 rather than LANG=C MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Various processes run as part of `make all` for typical projects will end up giving output full of replacement characters, or crashing, if run in an ASCII locale. Explicitly run them in a UTF-8 locale to avoid that. This assumes (I haven’t verified) that the code in Builder which parses the `make all` output is UTF-8–safe. See https://gitlab.gnome.org/GNOME/glib/issues/1430. Signed-off-by: Philip Withnall --- src/plugins/autotools/ide-autotools-make-stage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/autotools/ide-autotools-make-stage.c b/src/plugins/autotools/ide-autotools-make-stage.c index a9d5900f8..a180e294c 100644 --- a/src/plugins/autotools/ide-autotools-make-stage.c +++ b/src/plugins/autotools/ide-autotools-make-stage.c @@ -138,9 +138,9 @@ create_launcher (IdeAutotoolsMakeStage *self, */ if (dzl_str_equal0 ("all", make_target)) { - ide_subprocess_launcher_setenv (launcher, "LANG", "C", TRUE); - ide_subprocess_launcher_setenv (launcher, "LC_ALL", "C", TRUE); - ide_subprocess_launcher_setenv (launcher, "LC_MESSAGES", "C", TRUE); + ide_subprocess_launcher_setenv (launcher, "LANG", "C.UTF-8", TRUE); + ide_subprocess_launcher_setenv (launcher, "LC_ALL", "C.UTF-8", TRUE); + ide_subprocess_launcher_setenv (launcher, "LC_MESSAGES", "C.UTF-8", TRUE); } return g_steal_pointer (&launcher); -- GitLab