mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-08 11:03:38 +00:00
Testing fix for locale and startup issues related to improperly being set
This commit is contained in:
parent
3eed021200
commit
c4105db242
1 changed files with 532 additions and 531 deletions
|
@ -127,7 +127,8 @@ class SickRage(object):
|
||||||
sickbeard.SYS_ENCODING = None
|
sickbeard.SYS_ENCODING = None
|
||||||
|
|
||||||
try:
|
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()
|
sickbeard.SYS_ENCODING = locale.getpreferredencoding()
|
||||||
except (locale.Error, IOError):
|
except (locale.Error, IOError):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue