From 52cd90941fdb7e1f3f8147397d866a05a5badd73 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Tue, 25 May 2021 14:29:22 -0400 Subject: [PATCH] Actually use the encoding. --- src/allmydata/test/test_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/test_runner.py b/src/allmydata/test/test_runner.py index a74447d27..a9ec83524 100644 --- a/src/allmydata/test/test_runner.py +++ b/src/allmydata/test/test_runner.py @@ -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)