summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-08-15 22:48:11 +0200
committerGravatar spoob <spoob@gmx.de> 2010-08-15 22:48:11 +0200
commit258a8799f5aa2a4637586bea0276adf969650ccc (patch)
treeb704ca0a5aaf72e47f4ea62762d37c9007c9d980 /pyLoadCore.py
parentscripts fix, rs fix, closed #127 (diff)
downloadpyload-258a8799f5aa2a4637586bea0276adf969650ccc.tar.xz
Youtube Playlist
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