Test also for mac install with uname for Darwin

This commit is contained in:
Cédric Krier
2008-08-19 19:05:17 +02:00
parent 948976863d
commit ae2bdad2d9
+1 -1
View File
@@ -1056,7 +1056,7 @@ class OpenBalanceSheet(Wizard):
if os.name == 'nt':
os.environ['LANG'] = lang
lang = _LOCALE2WIN32.get(lang, lang)
elif os.name == 'mac':
elif os.name == 'mac' or os.uname()[0] == 'Darwin':
encoding = 'UTF-8'
locale.setlocale(locale.LC_ALL, str(lang + '.' + encoding))
except: