https://bugs.launchpad.net/lightdm/+bug/790186 --- lightdm-1.26.0/liblightdm-gobject/language.c 2018-02-07 00:31:03.000000000 +0000 +++ lightdm-1.26.0/liblightdm-gobject/language.c 2018-06-02 09:11:20.129001120 +0000 @@ -214,10 +214,16 @@ lightdm_language_get_name (LightDMLangua if (locale) { const gchar *current = setlocale (LC_ALL, NULL); +#ifdef LC_IDENTIFICATION setlocale (LC_IDENTIFICATION, locale); +#endif setlocale (LC_MESSAGES, ""); +#ifdef _NL_IDENTIFICATION_LANGUAGE const gchar *language_en = nl_langinfo (_NL_IDENTIFICATION_LANGUAGE); +#else + const gchar *language_en = "Unknown"; +#endif if (language_en && strlen (language_en) > 0) priv->name = g_strdup (dgettext ("iso_639_3", language_en)); @@ -254,10 +260,16 @@ lightdm_language_get_territory (LightDML if (locale) { gchar *current = setlocale (LC_ALL, NULL); +#ifdef LC_IDENTIFICATION setlocale (LC_IDENTIFICATION, locale); +#endif setlocale (LC_MESSAGES, ""); +#ifdef _NL_IDENTIFICATION_TERRITORY gchar *country_en = nl_langinfo (_NL_IDENTIFICATION_TERRITORY); +#else + gchar *country_en = "Unknown"; +#endif if (country_en && strlen (country_en) > 0 && g_strcmp0 (country_en, "ISO") != 0) priv->territory = g_strdup (dgettext ("iso_3166", country_en));