use a default LANG var only under windows

This commit is contained in:
Yann Leboulanger 2006-02-24 15:04:06 +00:00
parent e0b6d2700e
commit 170e0d71d0

View file

@ -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: