From 80f37bb3fa963770ed547fd7574c6dbdb04668a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 5 Apr 2019 19:39:37 +0200 Subject: [PATCH] Windows: Dont override format region settings --- gajim/common/i18n.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gajim/common/i18n.py b/gajim/common/i18n.py index 2d0fc4686..8c05edc40 100644 --- a/gajim/common/i18n.py +++ b/gajim/common/i18n.py @@ -158,8 +158,9 @@ try: if os.name == 'nt': # Set the env var on Windows because gettext.find() uses it to # find the translation - os.environ['LANG'] = LANG - print('Found default language: %s' % LANG) + # Use LANGUAGE instead of LANG, LANG sets LC_ALL and thus + # doesn't retain other region settings like LC_TIME + os.environ['LANGUAGE'] = LANG except Exception as error: print('Failed to determine default language', file=sys.stderr) import traceback