diff options
Diffstat (limited to 'testing/lightdm/musl-language.patch')
-rw-r--r-- | testing/lightdm/musl-language.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/lightdm/musl-language.patch b/testing/lightdm/musl-language.patch new file mode 100644 index 0000000000..8908bbc511 --- /dev/null +++ b/testing/lightdm/musl-language.patch @@ -0,0 +1,34 @@ +--- ./liblightdm-gobject/language.c.orig ++++ ./liblightdm-gobject/language.c +@@ -224,6 +224,7 @@ + + if (!priv->name) + { ++#if HAVE_LC_IDENTIFICATION + gchar *locale = get_locale_name (priv->code); + if (locale) + { +@@ -238,6 +239,7 @@ + setlocale (LC_ALL, current); + } + if (!priv->name) ++#endif + { + gchar **tokens = g_strsplit_set (priv->code, "_.@", 2); + priv->name = g_strdup (tokens[0]); +@@ -267,6 +269,7 @@ + + if (!priv->territory && strchr (priv->code, '_')) + { ++#if HAVE_LC_IDENTITIFICATION + gchar *locale = get_locale_name (priv->code); + if (locale) + { +@@ -281,6 +284,7 @@ + setlocale (LC_ALL, current); + } + if (!priv->territory) ++#endif + { + gchar **tokens = g_strsplit_set (priv->code, "_.@", 3); + priv->territory = g_strdup (tokens[1]); |