1
0
mirror of https://github.com/moparisthebest/SickRage synced 2025-01-05 10:58:01 -05:00

Merge pull request #113 from Prinz23/fix_SYS_ENCODING

Fix SYS_ENCODING
This commit is contained in:
JackDandy 2014-11-06 16:03:07 +00:00
commit 5f561a9575

View File

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