Skip to content

Commit 7b0ce09

Browse files
committed
Add encoding to open() in run-tests.py
1 parent 76df97f commit 7b0ce09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

run-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def cleanup(out):
1616
commands = []
1717

1818
for f in sorted(glob.glob(os.path.expanduser('testsuite/clang-preprocessor-tests/*.c*'))):
19-
for line in open(f, 'rt'):
19+
for line in open(f, 'rt', encoding='utf-8'):
2020
if line.startswith('// RUN: %clang_cc1 '):
2121
cmd = ''
2222
for arg in line[19:].split():

0 commit comments

Comments
 (0)