sys.stdout.encoding instead of latin-1 in setup.py

Please use sys.stdout.encoding instead of latin-1 in setup.py.
This is necessary for non English OS.
This commit is contained in:
Yu Kobayashi 2016-01-14 11:07:18 +09:00
parent 6bd5c2e395
commit d35104ed3c

View File

@ -265,7 +265,7 @@ def enqueue_output(out, queue):
def _log_buf(buf):
if not buf:
return
buf = buf.decode("latin-1")
buf = buf.decode(sys.stdout.encoding)
buf = buf.rstrip()
lines = buf.splitlines()
for line in lines: