cope better when LANG is not set at all
svn: r18598
This commit is contained in:
parent
c40a086177
commit
300a794f07
@ -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