mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-13 20:47:46 +02:00
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:
@@ -2449,6 +2449,10 @@ gint
|
|||||||
main (gint argc,
|
main (gint argc,
|
||||||
gchar *argv[])
|
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_init (&argc, &argv, NULL);
|
||||||
g_test_bug_base ("http://bugzilla.gnome.org/");
|
g_test_bug_base ("http://bugzilla.gnome.org/");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user