File gdm-fix-button-lang.patch of Package gdm.16051

diff -Nura gdm-3.10.0.1/daemon/gdm-session.c gdm-3.10.0.1_new/daemon/gdm-session.c
--- gdm-3.10.0.1/daemon/gdm-session.c	2015-11-17 17:50:17.855947784 +0800
+++ gdm-3.10.0.1_new/daemon/gdm-session.c	2015-11-17 19:04:05.127856930 +0800
@@ -505,11 +505,22 @@
 static const char *
 get_default_language_name (GdmSession *self)
 {
+    const char *locale = g_getenv ("LANG");
+
     if (self->priv->saved_language != NULL) {
                 return self->priv->saved_language;
     }
 
+    else if (strcmp("POSIX", locale) != 0 && 
+             strcmp("none",  locale) != 0 && 
+             strlen(locale) != 0) {
+                setlocale (LC_ALL, locale);
+                return (locale);
+    }
+
+    else {
     return setlocale (LC_MESSAGES, NULL);
+    }
 }
 
 static const char *