From be859df51ebbb6110e0321119014b60c43a947f5 Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Wed, 3 Apr 2013 02:23:06 +0400 Subject: [PATCH] Fix for #457 - issue with compiler Unicode output --- run_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_tests.py b/run_tests.py index 6f9a682a..fe6907eb 100755 --- a/run_tests.py +++ b/run_tests.py @@ -178,7 +178,7 @@ def run_cmds(compile_cmds, run_cmd, filename, expect_failure): if compile_failed: sys.stdout.write("Compilation of test %s failed \n" % filename) if output != "": - sys.stdout.write("%s" % output) + sys.stdout.write("%s" % output.encode("utf-8")) return (1, 0) (return_code, output) = run_command(run_cmd) @@ -191,7 +191,7 @@ def run_cmds(compile_cmds, run_cmd, filename, expect_failure): (filename, "unexpectedly passed" if expect_failure else "failed", return_code)) if output != "": - sys.stdout.write("%s\n" % output) + sys.stdout.write("%s\n" % output.encode("utf-8")) if surprise == True: return (0, 1) else: