use a default LANG var only under windows
This commit is contained in:
parent
e0b6d2700e
commit
170e0d71d0
1 changed files with 10 additions and 9 deletions
|
@ -37,7 +37,8 @@ else:
|
||||||
# according to the environment variables
|
# according to the environment variables
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
|
|
||||||
## Set, if needed, a value in LANG environmental variable ##
|
## For win: set, if needed, a value in LANG environmental variable ##
|
||||||
|
if os.name == 'nt':
|
||||||
# get LANG, fallback to ''
|
# get LANG, fallback to ''
|
||||||
lang = os.environ.get('LANG')
|
lang = os.environ.get('LANG')
|
||||||
if not lang:
|
if not lang:
|
||||||
|
|
Loading…
Add table
Reference in a new issue