[gitg] Set LC_COLLATE to the "C" locale for use with git2
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Set LC_COLLATE to the "C" locale for use with git2
- Date: Tue, 4 Aug 2015 20:11:04 +0000 (UTC)
commit 4bd03bdccd3ea002a9022cf652897a0674cfd68c
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Tue Aug 4 22:09:58 2015 +0200
Set LC_COLLATE to the "C" locale for use with git2
https://bugzilla.gnome.org/show_bug.cgi?id=749293
gitg/gitg.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg.vala b/gitg/gitg.vala
index 2459cbd..09d587a 100644
--- a/gitg/gitg.vala
+++ b/gitg/gitg.vala
@@ -45,7 +45,11 @@ public class Main
public static int main(string[] args)
{
+ Gtk.disable_setlocale();
+
Intl.setlocale(LocaleCategory.ALL, "");
+ Intl.setlocale(LocaleCategory.COLLATE, "C");
+
Intl.bindtextdomain(Config.GETTEXT_PACKAGE, Config.GITG_LOCALEDIR);
Intl.bind_textdomain_codeset(Config.GETTEXT_PACKAGE, "UTF-8");
Intl.textdomain(Config.GETTEXT_PACKAGE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]