aboutsummaryrefslogtreecommitdiffstats
path: root/community/lightdm/musl-language.patch
blob: 442e7fb9d5b47d74c8d344eae495d7b7c27ef1a9 (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
35
36
--- a/liblightdm-gobject/language.c
+++ b/liblightdm-gobject/language.c
@@ -210,6 +210,7 @@
 
     if (!priv->name)
     {
+	#if HAVE_LC_IDENTIFICATION
         g_autofree gchar *locale = get_locale_name (priv->code);
         if (locale)
         {
@@ -223,6 +224,8 @@
 
             setlocale (LC_ALL, current);
         }
+	#endif
+
         if (!priv->name)
         {
             g_auto(GStrv) tokens = g_strsplit_set (priv->code, "_.@", 2);
@@ -250,6 +253,7 @@
 
     if (!priv->territory && strchr (priv->code, '_'))
     {
+	#if HAVE_LC_IDENTITIFICATION
         g_autofree gchar *locale = get_locale_name (priv->code);
         if (locale)
         {
@@ -263,6 +267,8 @@
 
             setlocale (LC_ALL, current);
         }
+	#endif
+
         if (!priv->territory)
         {
             g_auto(GStrv) tokens = g_strsplit_set (priv->code, "_.@", 3);