summaryrefslogtreecommitdiffstats
path: root/testing/lightdm/uclibc-language.patch
blob: b1bbe797010e0a581ad202b9a5e317d01b03d5d9 (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
@@ -225,6 +225,7 @@
 
     if (!priv->name)
     {
+#ifndef __UCLIBC__
         gchar *locale = get_locale_name (priv->code);
         if (locale)
         {
@@ -238,6 +239,7 @@
 
             setlocale (LC_ALL, current);
         }
+#endif
         if (!priv->name)
         {
             gchar **tokens = g_strsplit_set (priv->code, "_.@", 2);
@@ -268,6 +270,7 @@
 
     if (!priv->territory && strchr (priv->code, '_'))
     {
+#ifndef __UCLIBC__
         gchar *locale = get_locale_name (priv->code);
         if (locale)
         {
@@ -281,6 +284,7 @@
 
             setlocale (LC_ALL, current);
         }
+#endif
         if (!priv->territory)
         {
             gchar **tokens = g_strsplit_set (priv->code, "_.@", 3);