mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-01 13:42:10 +01:00
tests: Use a more realistic language code than sv_SV
Swedish as spoken in El Salvador is not listed in /usr/share/i18n/SUPPORTED, and in any case is probably not what we meant. A more plausible language code would be Swedish as spoken in Sweden. Prompted by improving the Debian packaging of GLib to generate most of the language codes mentioned in the tests, so that we can have better test coverage. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
2c22e6269b
commit
ee53840fa6
@ -303,7 +303,7 @@ test_extra_getters (void)
|
|||||||
g_assert_cmpstr (s, ==, "Bratwurst");
|
g_assert_cmpstr (s, ==, "Bratwurst");
|
||||||
g_free (s);
|
g_free (s);
|
||||||
|
|
||||||
g_setenv ("LANGUAGE", "sv_SV.UTF8", TRUE);
|
g_setenv ("LANGUAGE", "sv_SE.UTF8", TRUE);
|
||||||
setlocale (LC_ALL, "");
|
setlocale (LC_ALL, "");
|
||||||
|
|
||||||
s = g_desktop_app_info_get_locale_string (appinfo, "X-JunkFood");
|
s = g_desktop_app_info_get_locale_string (appinfo, "X-JunkFood");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user