diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2011-12-14 16:18:30 +0100 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2011-12-14 16:18:30 +0100 |
commit | 2ed683d477a547dcab2a554d0a1e95e3f4a35d48 (patch) | |
tree | 8dafe6796dcbba5c8a2aca99a0dc35deaf8d9ad8 /pyLoadCore.py | |
parent | fix input encoding in setup (diff) | |
download | pyload-2ed683d477a547dcab2a554d0a1e95e3f4a35d48.tar.xz |
cp65001 is broken
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 2bcfde3c8..e43c4bcf8 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -53,15 +53,11 @@ from module import remote from module.remote.RemoteManager import RemoteManager from module.database import DatabaseBackend, FileHandler -from module.utils import freeSpace, formatSize +from module.utils import freeSpace, formatSize, getConsoleEncoding from codecs import getwriter -if os.name == "nt": - enc = sys.stdout.encoding -else: - enc = "utf8" - +enc = getConsoleEncoding(sys.stdout.encoding) sys.stdout = getwriter(enc)(sys.stdout, errors="replace") # TODO List |