summaryrefslogtreecommitdiff
path: root/debian/patches/dyson-LC_IDENTIFICATION.patch
blob: 979c5b3b24831e5cb1deda2363fd6516b94146c1 (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
Index: lightdm-1.10.3/liblightdm-gobject/language.c
===================================================================
--- lightdm-1.10.3.orig/liblightdm-gobject/language.c
+++ lightdm-1.10.3/liblightdm-gobject/language.c
@@ -224,6 +224,7 @@ lightdm_language_get_name (LightDMLangua
 
     if (!priv->name)
     {
+#ifdef LC_IDENTIFICATION
         gchar *locale = get_locale_name (priv->code);
         if (locale)
         {
@@ -237,6 +238,7 @@ lightdm_language_get_name (LightDMLangua
 
             setlocale (LC_ALL, current);
         }
+#endif
         if (!priv->name)
         {
             gchar **tokens = g_strsplit_set (priv->code, "_.@", 2);
@@ -267,6 +269,7 @@ lightdm_language_get_territory (LightDML
 
     if (!priv->territory && strchr (priv->code, '_'))
     {
+#ifdef LC_IDENTIFICATION
         gchar *locale = get_locale_name (priv->code);
         if (locale)
         {
@@ -280,6 +283,7 @@ lightdm_language_get_territory (LightDML
 
             setlocale (LC_ALL, current);
         }
+#endif
         if (!priv->territory)
         {
             gchar **tokens = g_strsplit_set (priv->code, "_.@", 3);