[glib: 1/2] tests: Unset LANGUAGE when running gdatetime tests
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [glib: 1/2] tests: Unset LANGUAGE when running gdatetime tests
- Date: Mon,  3 Dec 2018 11:27:13 +0000 (UTC)
commit 69fbf3ed59f5f436263e1632ce050b542af5d4a0
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date:   Thu Nov 29 00:00:00 2018 +0000
    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/");
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]