From 7b0ce09f404502e74090ab32d2c3b128f0633b0c Mon Sep 17 00:00:00 2001 From: glank Date: Thu, 12 Jun 2025 15:57:31 +0200 Subject: [PATCH] Add encoding to open() in run-tests.py --- run-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.py b/run-tests.py index 2f28bf0f..5017f4c1 100644 --- a/run-tests.py +++ b/run-tests.py @@ -16,7 +16,7 @@ def cleanup(out): commands = [] for f in sorted(glob.glob(os.path.expanduser('testsuite/clang-preprocessor-tests/*.c*'))): - for line in open(f, 'rt'): + for line in open(f, 'rt', encoding='utf-8'): if line.startswith('// RUN: %clang_cc1 '): cmd = '' for arg in line[19:].split():