From 65211703c01b846f7266c122f2a7afa937d6933d Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Tue, 14 Jun 2016 21:57:40 +0200 Subject: [PATCH] Try UTF-8 locale encoding - setlocale didn't always try UTF-8, and on systems that only had UTF-8 encoding of the selected locale, this would fail to change locale Fixes #872 --- src/bitmessageqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index c8566aec..adca4c6c 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -105,7 +105,7 @@ def change_translation(locale): QtGui.QApplication.installTranslator(qsystranslator) lang = pythonlocale.normalize(l10n.getTranslationLanguage()) - langs = [lang.split(".")[0] + "." + l10n.encoding, lang] + langs = [lang.split(".")[0] + "." + l10n.encoding, lang.split(".")[0] + "." + 'UTF-8', lang] if 'win32' in sys.platform or 'win64' in sys.platform: langs = [l10n.getWindowsLocale(lang)] for lang in langs: