cope better when LANG is not set at all

svn: r18597
This commit is contained in:
Paul Franklin 2011-12-14 19:00:39 +00:00
parent a73a199d5a
commit 58172ea0a3

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