python/hypothesis: update to 6.122.3
[oi-userland.git] / components / desktop / lightdm / patches / 01-LC_IDENTIFICATION.patch
blob851c17437094be7ce63be58fc76e4036a83a41df
1 https://bugs.launchpad.net/lightdm/+bug/790186
3 --- lightdm-1.26.0/liblightdm-gobject/language.c 2018-02-07 00:31:03.000000000 +0000
4 +++ lightdm-1.26.0/liblightdm-gobject/language.c 2018-06-02 09:11:20.129001120 +0000
5 @@ -214,10 +214,16 @@ lightdm_language_get_name (LightDMLangua
6 if (locale)
8 const gchar *current = setlocale (LC_ALL, NULL);
9 +#ifdef LC_IDENTIFICATION
10 setlocale (LC_IDENTIFICATION, locale);
11 +#endif
12 setlocale (LC_MESSAGES, "");
14 +#ifdef _NL_IDENTIFICATION_LANGUAGE
15 const gchar *language_en = nl_langinfo (_NL_IDENTIFICATION_LANGUAGE);
16 +#else
17 + const gchar *language_en = "Unknown";
18 +#endif
19 if (language_en && strlen (language_en) > 0)
20 priv->name = g_strdup (dgettext ("iso_639_3", language_en));
22 @@ -254,10 +260,16 @@ lightdm_language_get_territory (LightDML
23 if (locale)
25 gchar *current = setlocale (LC_ALL, NULL);
26 +#ifdef LC_IDENTIFICATION
27 setlocale (LC_IDENTIFICATION, locale);
28 +#endif
29 setlocale (LC_MESSAGES, "");
31 +#ifdef _NL_IDENTIFICATION_TERRITORY
32 gchar *country_en = nl_langinfo (_NL_IDENTIFICATION_TERRITORY);
33 +#else
34 + gchar *country_en = "Unknown";
35 +#endif
36 if (country_en && strlen (country_en) > 0 && g_strcmp0 (country_en, "ISO") != 0)
37 priv->territory = g_strdup (dgettext ("iso_3166", country_en));