[FIX] create db with non-english locale with web client (unicode problem).

lp bug: https://launchpad.net/bugs/326138 fixed

bzr revid: ame@tinyerp.com-20090211110145-54l9jno1a6yp3sd6
This commit is contained in:
ame (Tiny/Axelor)
2009-02-11 16:31:45 +05:30
parent c5943171d6
commit 4aa00ae64b
+1 -1
View File
@@ -527,7 +527,7 @@ def trans_load_data(db_name, fileobj, fileformat, lang, strict=False, lang_name=
fail = True
for ln in get_locales(lang):
try:
locale.setlocale(locale.LC_ALL, ln)
locale.setlocale(locale.LC_ALL, str(ln))
fail = False
break
except locale.Error: