cope better when LANG is not set at all
svn: r18598
This commit is contained in:
1 parent
c40a086177
commit
300a794f07
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user