aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lightdm/musl-language.patch
blob: 8908bbc5113a6a9265e6a408e585e325f5a8fc90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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]);