[meld] Specify translation encoding as UTF8
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Specify translation encoding as UTF8
- Date: Wed, 25 Jan 2012 23:26:40 +0000 (UTC)
commit a532e724c7ed351d34ca412a8b8dfe4517bb9581
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Jan 22 08:49:08 2012 +1000
Specify translation encoding as UTF8
This should fix some crashes when loading UTF8 translations in locales
that don't have a specified encoding.
bin/meld | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/bin/meld b/bin/meld
index c86eebd..71e9d43 100755
--- a/bin/meld
+++ b/bin/meld
@@ -78,6 +78,7 @@ gettext.install(locale_domain, localedir=locale_dir, unicode=True)
try:
locale.bindtextdomain(locale_domain, locale_dir)
+ locale.bind_textdomain_codeset(locale_domain, 'UTF-8')
except AttributeError:
# OS X doesn't appear to have bindtextdomain(). This will cause
# gtk.Builder translations to fail.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]