From 4013bd31fda4c582ac60b53df378feb43cb29f80 Mon Sep 17 00:00:00 2001 From: mailchuck Date: Fri, 29 Apr 2016 22:03:54 +0200 Subject: [PATCH] Time & date Windows encoding On Windows, the encoding was always the default windows encoding and didn't change when you use a language in BM that required a different encoding. This affected mainly date & time in the received column and the startup info on the network status tab. --- src/bitmessageqt/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index f74bf12d..a314a978 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -110,6 +110,8 @@ def change_translation(locale): pythonlocale.setlocale(pythonlocale.LC_ALL, lang) if 'win32' not in sys.platform and 'win64' not in sys.platform: l10n.encoding = pythonlocale.nl_langinfo(pythonlocale.CODESET) + else: + l10n.encoding = pythonlocale.getlocale()[1] except: logger.error("Failed to set locale to %s", lang, exc_info=True)