1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/testing/lightdm/musl-language.patch
2014-06-02 19:02:10 +00:00

34 lines
924 B
Diff

--- ./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]);