Blob Blame History Raw
From 7b7a9a849da23846d17a843688ed97de229eb1cb Mon Sep 17 00:00:00 2001
From: "Zeeshan Ali (Khattak)" <zeeshanak@gnome.org>
Date: Thu, 16 May 2013 00:12:24 +0300
Subject: [PATCH] installer: Handle locales with '.UTF-8' suffix

Apparently its not just '.utf8' but also '.UTF-8' suffix thats used as
suffix in locale names. Better make sure we strip that too before giving
the string to libosinfo.

https://bugzilla.gnome.org/show_bug.cgi?id=700415
---
 src/unattended-installer.vala | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index bbc2436..36233fd 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -878,6 +878,7 @@ private string get_preferred_language () {
         }
 
         var lang = system_langs[0].replace (".utf8", "");
+        lang = lang.replace (".UTF-8", "");
         debug ("No media language, using %s locale", lang);
 
         return lang;
-- 
1.8.2.1