diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-06 12:50:18 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-06 12:50:18 +0200 |
commit | 925fde4260ab5e76820d1bc6a87a372f0a6b42d8 (patch) | |
tree | 1eeda1d5faf19a75079b4efc85d2ab9a8d1f3755 /pyLoadCore.py | |
parent | gui fix, plugin with no main function fix (diff) | |
download | pyload-925fde4260ab5e76820d1bc6a87a372f0a6b42d8.tar.xz |
win fixes, updated locale + pl
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 8 |
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 """ |