File lightdm-do-not-strip-codeset-from-language.patch of Package lightdm

# HG changeset patch
# Parent 85f20a477f42e514507c2d6ecd97deee2f860bcc
Do not strip the codeset when loading the Language filed from dmrc

Do not strip the codeset and be consistent with how the Language setting is
retrived from AccountsService.

diff --git a/liblightdm-gobject/user.c b/liblightdm-gobject/user.c
--- a/liblightdm-gobject/user.c
+++ b/liblightdm-gobject/user.c
@@ -1133,16 +1133,10 @@ load_dmrc (LightDMUser *user)
 
     // FIXME: Watch for changes
 
-    /* The Language field is actually a locale, strip the codeset off it to get the language */
+    /* The Language field contains the locale */
     if (priv->language)
         g_free (priv->language);
     priv->language = g_key_file_get_string (priv->dmrc_file, "Desktop", "Language", NULL);
-    if (priv->language)
-    {
-        gchar *codeset = strchr (priv->language, '.');
-        if (codeset)
-            *codeset = '\0';
-    }
 
     if (priv->layouts)
     {
openSUSE Build Service is sponsored by