Merge pull request #710 from khertan/patch-1

#708 : Use default locale encoding
This commit is contained in:
Jonathan Warren 2014-08-28 13:38:25 -04:00
commit 7c5b116a95

View File

@ -18,7 +18,7 @@ language = DEFAULT_LANGUAGE
try:
import locale
encoding = locale.getpreferredencoding(False) or DEFAULT_ENCODING
encoding = locale.getpreferredencoding(True) or DEFAULT_ENCODING
language = locale.getlocale()[0] or locale.getdefaultlocale()[0] or DEFAULT_LANGUAGE
except:
logger.exception('Could not determine language or encoding')