setlocale needs str

This commit is contained in:
Cédric Krier committed 2008-07-18 11:03:00 +02:00
1 parent be990f0145
commit 83776c06ab
1 file changed
+1 -1
+1 -1
View File
@@ -478,7 +478,7 @@ class Report(object):
try:
if os.name == 'nt':
language = _LOCALE2WIN32.get(language, language)
locale.setlocale(locale.LC_ALL, language + '.' + encoding)
locale.setlocale(locale.LC_ALL, str(language + '.' + encoding))
except Exception:
Logger().notify_channel('web-service', LOG_ERROR,
'Report %s: unable to set locale "%s"' % \