Testing fix for locale and startup issues related to improperly being set

This commit is contained in:
echel0n 2014-08-09 00:55:46 +00:00
parent 3eed021200
commit c4105db242
1 changed files with 532 additions and 531 deletions

View File

@ -127,7 +127,8 @@ class SickRage(object):
sickbeard.SYS_ENCODING = None
try:
locale.setlocale(locale.LC_ALL, "")
locale.setlocale(locale.LC_ALL, "UTF-8")
locale.setlocale(locale.LC_CTYPE, "UTF-8")
sickbeard.SYS_ENCODING = locale.getpreferredencoding()
except (locale.Error, IOError):
pass