keyfile tests: Fix windows build using portable g_setenv

This commit is contained in:
Andoni Morales Alastruey 2012-01-26 14:38:14 +01:00 committed by Sebastian Dröge
parent 9f870fc056
commit 59881a65b2

View File

@ -679,7 +679,7 @@ test_locale_string (void)
/* now test that translations are thrown away */
old_locale = g_strdup (setlocale (LC_ALL, NULL));
setenv ("LANGUAGE", "de", TRUE);
g_setenv ("LANGUAGE", "de", TRUE);
setlocale (LC_ALL, "");
keyfile = load_data (data, 0);