cope better when LANG is not set at all

svn: r18598
This commit is contained in:
Paul Franklin 2011-12-14 19:02:00 +00:00
parent c40a086177
commit 300a794f07

View File

@ -77,7 +77,8 @@ else:
try:
lang = locale.getdefaultlocale()[0] + '.UTF-8'
except TypeError:
pass
print 'Unable to determine your Locale, using English'
lang = 'en.UTF-8'
os.environ["LANG"] = lang
os.environ["LANGUAGE"] = lang