mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-17 10:20:13 +00:00
Actually use the encoding.
This commit is contained in:
parent
19c7de7a7a
commit
52cd90941f
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user