summaryrefslogtreecommitdiff
path: root/stub.py
diff options
context:
space:
mode:
Diffstat (limited to 'stub.py')
-rw-r--r--stub.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/stub.py b/stub.py
index 7c997524..c7ff5fa5 100644
--- a/stub.py
+++ b/stub.py
@@ -48,12 +48,12 @@ if sys.platform == "win32":
import msvcrt
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
-sys.stdout.write(stdout)
+sys.stdout.write(stdout.decode(sys.stdout.encoding))
sys.stdout.flush()
stderr = stderr.strip()
if stderr:
- sys.stderr.write(stderr.strip())
+ sys.stderr.write(stderr.decode(sys.stdout.encoding).strip())
sys.stderr.flush()
sys.exit(extension.returncode)