llvm-project/libcxx/utils
Michal Gorny a5bb7b6c20 [libcxx] [test] Read files as bytestrings to fix py3 encoding issues
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
2019-06-24 09:40:33 +00:00
..
ci [NFC] Build libc++ verbosely in the macOS CI 2019-04-16 21:16:58 +00:00
docker Reconfigure docker builders to be more modular. 2019-06-18 19:31:38 +00:00
google-benchmark Update google benchmark again 2018-12-14 03:48:09 +00:00
libcxx [libcxx] [test] Read files as bytestrings to fix py3 encoding issues 2019-06-24 09:40:33 +00:00
symcheck-blacklists Start libc++ python cleanup and consolidation. 2017-02-09 22:53:14 +00:00
cat_files.py Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
gen_link_script.py [libcxx] Use relative path for libc++ library when generating script 2019-04-23 22:55:28 +00:00
generate_feature_test_macro_components.py P0722R3: Implement library support for destroying delete 2019-05-23 23:46:44 +00:00
merge_archives.py [libcxx] Use libtool when merging archives on Apple platforms 2019-06-02 01:14:31 +00:00
not.py Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
sym_diff.py Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
sym_extract.py Make the sym_diff utilities more useful. 2019-02-12 00:00:43 +00:00
sym_match.py Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00