[gnome-boxes] installer: Handle locales with '.UTF-8' suffix
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] installer: Handle locales with '.UTF-8' suffix
- Date: Thu, 16 May 2013 13:52:14 +0000 (UTC)
commit 9ecb7acd2516e78ccc6f0b7384e9381140edfc0f
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 bbc2436..36233fd 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -878,6 +878,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]