Commits

Anonymous committed 92a5379

* Fix initLocale(): return charset even if config.unicode_stdout is False

Comments (0)

Files changed (2)

hachoir-core/ChangeLog

  * Add more charsets to GenericString: CP874, WINDOWS-1250, WINDOWS-1251,
    WINDOWS-1254, WINDOWS-1255, WINDOWS-1256,WINDOWS-1257, WINDOWS-1258,
    ISO-8859-16
-
+ * Fix initLocale(): return charset even if config.unicode_stdout is False
 
 What's new in hachoir-core 1.2.1?
 =================================

hachoir-core/hachoir_core/i18n.py

         # Replace stdout and stderr by unicode objet supporting unicode string
         sys.stdout = UnicodeStdout(sys.stdout, charset)
         sys.stderr = UnicodeStdout(sys.stderr, charset)
-        return charset
+    return charset
 
 def _dummy_gettext(text):
     return unicode(text)