Skip to content

Commit 6cc4f53

Browse files
authored
Add encoding to open() in run-tests.py (danmar#440)
1 parent 9ba3970 commit 6cc4f53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)