From 69fbf3ed59f5f436263e1632ce050b542af5d4a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Thu, 29 Nov 2018 00:00:00 +0000 Subject: [PATCH] tests: Unset LANGUAGE when running gdatetime tests In glibc, LANGUAGE is used as highest priority guess for category value. Unset it to avoid interference with tests using setlocale and translation. Issue #1357. --- glib/tests/gdatetime.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c index f4000d96c..09f84cb21 100644 --- a/glib/tests/gdatetime.c +++ b/glib/tests/gdatetime.c @@ -2449,6 +2449,10 @@ gint main (gint argc, gchar *argv[]) { + /* In glibc, LANGUAGE is used as highest priority guess for category value. + * Unset it to avoid interference with tests using setlocale and translation. */ + g_unsetenv ("LANGUAGE"); + g_test_init (&argc, &argv, NULL); g_test_bug_base ("http://bugzilla.gnome.org/");