Test also for mac install with uname for Darwin

This commit is contained in:
Cédric Krier committed 2008-08-19 19:05:02 +02:00
1 parent c1ac5271ef
commit 584df48825
1 file changed
+1 -1
+1 -1
View File
@@ -491,7 +491,7 @@ class Report(object):
if os.name == 'nt':
os.environ['LANG'] = language
language = _LOCALE2WIN32.get(language, language)
elif os.name == 'mac':
elif os.name == 'mac' or os.uname()[0] == 'Darwin':
encoding = 'UTF-8'
locale.setlocale(locale.LC_ALL, str(language + '.' + encoding))
except Exception: