From ac5c67e74851a4f9c31de39f08e8705f26f581e2 Mon Sep 17 00:00:00 2001 From: Cruor99 Date: Sun, 10 Dec 2017 15:56:08 +0100 Subject: [PATCH] Fix unicode error introduced in latest macOS --- toolchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain.py b/toolchain.py index 133bac6..fcea038 100755 --- a/toolchain.py +++ b/toolchain.py @@ -37,7 +37,7 @@ def shprint(command, *args, **kwargs): kwargs["_out_bufsize"] = 1 kwargs["_err_to_out"] = True for line in command(*args, **kwargs): - stdout.write(line) + stdout.write(line.encode("ascii", "replace").decode()) def cache_execution(f):