Skip to content

Commit a21dd25

Browse files
authored
[clang] Enforce UTF-8 in make_cxx_dr_status (#131816)
Otherwise Windows users have troubles with lexer tests that use emojis.
1 parent a6c09d4 commit a21dd25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/www/make_cxx_dr_status

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def collect_tests():
3939
continue
4040
test_cpp = os.path.join(dr_test_dir, test_cpp)
4141
found_any = False;
42-
for match in re.finditer(status_re, open(test_cpp, 'r').read()):
42+
for match in re.finditer(status_re, open(test_cpp, 'r', encoding="utf-8").read()):
4343
dr_number = int(match.group(1))
4444
if dr_number in status_map:
4545
print("error: Comment for cwg{} encountered more than once. Duplicate found in {}".format(dr_number, test_cpp))

0 commit comments

Comments
 (0)