[gnome-builder] autotools: Use LANG=C.UTF-8 rather than LANG=C
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] autotools: Use LANG=C.UTF-8 rather than LANG=C
- Date: Fri, 13 Jul 2018 15:44:09 +0000 (UTC)
commit ce3f740e9493e22e93eacabf8c7057624e3bdf03
Author: Philip Withnall <withnall endlessm com>
Date: Wed Jul 11 10:54:43 2018 +0200
autotools: Use LANG=C.UTF-8 rather than LANG=C
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 <withnall endlessm com>
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]