cope better when LANG is not set at all
svn: r18597
This commit is contained in:
parent
a73a199d5a
commit
58172ea0a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user