forked from OSchip/llvm-project
a5bb7b6c20
Use binary mode to read test files in libcxx LibcxxTestFormat class. This ensures that tests are read correctly independently of encoding, and therefore fixes UnicodeDecodeError when file is opened in Python 3 that defaults to pure ASCII encoding. Technically this could be also fixed via conditionally appending encoding argument when opening the file in Python 3. However, since the code in question only searches for fixed ASCII substrings reading it in binary mode is simpler and more universal. Differential Revision: https://reviews.llvm.org/D63346 llvm-svn: 364170 |
||
---|---|---|
.. | ||
ci | ||
docker | ||
google-benchmark | ||
libcxx | ||
symcheck-blacklists | ||
cat_files.py | ||
gen_link_script.py | ||
generate_feature_test_macro_components.py | ||
merge_archives.py | ||
not.py | ||
sym_diff.py | ||
sym_extract.py | ||
sym_match.py |