[gnome-boxes/gnome-3-8] installer: Handle locales with '.UTF-8' suffix
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-8] installer: Handle locales with '.UTF-8' suffix
- Date: Tue, 28 May 2013 09:07:08 +0000 (UTC)
commit 2ebe43ab7a55dd21f761e13debd045d649160125
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu May 16 00:12:24 2013 +0300
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 5e16bb1..bd4b6d7 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -880,6 +880,7 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
}
var lang = system_langs[0].replace (".utf8", "");
+ lang = lang.replace (".UTF-8", "");
debug ("No media language, using %s locale", lang);
return lang;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]