summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-06 12:50:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-06 12:50:18 +0200
commit925fde4260ab5e76820d1bc6a87a372f0a6b42d8 (patch)
tree1eeda1d5faf19a75079b4efc85d2ab9a8d1f3755 /pyLoadCore.py
parentgui fix, plugin with no main function fix (diff)
downloadpyload-925fde4260ab5e76820d1bc6a87a372f0a6b42d8.tar.xz
win fixes, updated locale + pl
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 30468bac2..d92841d56 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -28,6 +28,7 @@ import gettext
from imp import find_module
import logging
import logging.handlers
+import os
from os import _exit
from os import execv
from os import getcwd
@@ -65,7 +66,12 @@ from module.web.ServerThread import WebServer
from module.FileDatabase import PyFile
from codecs import getwriter
-sys.stdout = getwriter("utf8")(sys.stdout, errors = "replace")
+if os.name == "nt":
+ enc = "cp850"
+else:
+ enc = "utf8"
+
+sys.stdout = getwriter(enc)(sys.stdout, errors = "replace")
class Core(object):
""" pyLoad Core """