From b301051cdd3d8b78cad071bf04577518607c5cfd Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 10 Jul 2011 16:45:02 +0100 Subject: [PATCH] Fix #1637: UnicodeDecodeError from 'deluge-console --help' with other languages --- deluge/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index caa45b604..f7784da40 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -698,9 +698,7 @@ def setup_translations(setup_pygtk=False): locale.bindtextdomain("deluge", translations_path) if hasattr(locale, "textdomain"): locale.textdomain("deluge") - gettext.bindtextdomain("deluge", translations_path) - gettext.textdomain("deluge") - gettext.install("deluge", translations_path) + gettext.install("deluge", translations_path, unicode=True) if setup_pygtk: # Even though we're not using glade anymore, let's set it up so that # plugins still using it get properly translated.