From f760e5cfdc7e56f349e7a4c8d5abecb840ecdb56 Mon Sep 17 00:00:00 2001 From: Daniel McGregor Date: Fri, 8 Dec 2023 19:48:47 +0800 Subject: [PATCH] fix: use utf-8 encoding when running puya from compile_all_examples.py --- scripts/compile_all_examples.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/compile_all_examples.py b/scripts/compile_all_examples.py index 6d8939b676..4fbd00e49d 100755 --- a/scripts/compile_all_examples.py +++ b/scripts/compile_all_examples.py @@ -133,6 +133,7 @@ def checked_compile(p: Path, flags: list[str], *, write_logs: bool) -> Compilati stderr=subprocess.STDOUT, text=True, env=ENV_WITH_NO_COLOR, + encoding="utf-8", ) final_ir_written = re.findall(r"debug: Output IR to (.+\.final\.ir)", result.stdout) final_ir_written += re.findall(r"debug: Output IR to (.+\.final_par\.ir)", result.stdout)