Module: deluge Branch: 1.3-stable Commit: 28fc325db95e9dd6e3de97aaa8d798618ab4be0d
Author: Calum Lind <[email protected]> Date: Sat Jul 9 16:47:16 2011 +0100 Fix UnicodeDecodeError from 'deluge-console --help' with other languages --- deluge/common.py | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index c6e3ae0..4a2dfb8 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -73,9 +73,7 @@ try: locale.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n")) if hasattr(locale, "textdomain"): locale.textdomain("deluge") - gettext.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n")) - gettext.textdomain("deluge") - gettext.install("deluge", pkg_resources.resource_filename("deluge", "i18n")) + gettext.install("deluge", pkg_resources.resource_filename("deluge", "i18n"), unicode=True) except Exception, e: from deluge.log import LOG as log log.error("Unable to initialize gettext/locale!") -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
