Actually use the encoding.

This commit is contained in:
Itamar Turner-Trauring 2021-05-25 14:29:22 -04:00
parent 19c7de7a7a
commit 52cd90941f

View File

@ -97,8 +97,8 @@ def run_bintahoe(extra_argv, python_options=None):
encoding = "utf-8"
else:
encoding = locale.getpreferredencoding(False)
out = p.stdout.read().decode("utf-8")
err = p.stderr.read().decode("utf-8")
out = p.stdout.read().decode(encoding)
err = p.stderr.read().decode(encoding)
returncode = p.wait()
return (out, err, returncode)