diff options
author | Vladislav Zavialov <vlad.z.4096@gmail.com> | 2020-02-17 17:14:20 +0300 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-02-18 20:17:24 -0500 |
commit | 192caf58ca1fc42806166872260d30bdb34dbace (patch) | |
tree | 1392cb491b2a3a98723824b9201d68a93f00d6c3 /testsuite | |
parent | 5a1ce45d6cf03802caf15548210bb9924468c437 (diff) | |
download | haskell-192caf58ca1fc42806166872260d30bdb34dbace.tar.gz |
Fix testsuite driver output (#17847)
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/driver/testlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 6267219d14..35e9bd060d 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -2221,7 +2221,7 @@ def normalise_asm( s: str ) -> str: return '\n'.join(out) def safe_print(s: str) -> None: - s2 = s.encode(sys.stdout.encoding, errors='replace') + s2 = s.encode(sys.stdout.encoding, errors='replace').decode(sys.stdout.encoding) print(s2) def if_verbose( n: int, s: str ) -> None: |