[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:
parent
c5943171d6
commit
4aa00ae64b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue