1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

SYS_ENCODING set to System Default

This commit is contained in:
Prinz23 2014-11-08 02:09:54 +01:00
parent a3a38f76e7
commit e338c569c5

View File

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