summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index fe7ba861f..c2cb7976a 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -50,6 +50,15 @@ from time import sleep
from traceback import print_exc
from xmlrpclib import Binary
+
+import locale
+import codecs
+encoding = locale.getlocale()[1]
+if not encoding:
+ encoding = "us-ascii"
+sys.stdout = codecs.getwriter(encoding)(sys.stdout, errors = "ignore")
+sys.stderr = codecs.getwriter(encoding)(sys.stderr, errors = "ignore")
+
from module import InitHomeDir
from module.AccountManager import AccountManager
from module.CaptchaManager import CaptchaManager