Skip to content

Commit 4013bd3

Browse files
mailchuckPeterSurda
authored andcommitted
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.
1 parent 88678ea commit 4013bd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bitmessageqt/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def change_translation(locale):
110110
pythonlocale.setlocale(pythonlocale.LC_ALL, lang)
111111
if 'win32' not in sys.platform and 'win64' not in sys.platform:
112112
l10n.encoding = pythonlocale.nl_langinfo(pythonlocale.CODESET)
113+
else:
114+
l10n.encoding = pythonlocale.getlocale()[1]
113115
except:
114116
logger.error("Failed to set locale to %s", lang, exc_info=True)
115117

0 commit comments

Comments
 (0)