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.
This commit is contained in:
Tomasz Miąsko 2018-11-29 00:00:00 +00:00
parent 4afc203b1f
commit 69fbf3ed59

View File

@ -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/");