You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
libcxx_old/utils
Michal Gorny 6f546837a4 [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

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@364170 91177308-0d34-0410-b5e6-96231b3b80d8
5 years ago
..
ci [NFC] Build libc++ verbosely in the macOS CI 6 years ago
docker Reconfigure docker builders to be more modular. 6 years ago
google-benchmark Update google benchmark again 6 years ago
libcxx [libcxx] [test] Read files as bytestrings to fix py3 encoding issues 5 years ago
symcheck-blacklists Start libc++ python cleanup and consolidation. 8 years ago
cat_files.py Update more file headers across all of the LLVM projects in the monorepo 6 years ago
gen_link_script.py [libcxx] Use relative path for libc++ library when generating script 6 years ago
generate_feature_test_macro_components.py P0722R3: Implement library support for destroying delete 6 years ago
merge_archives.py [libcxx] Use libtool when merging archives on Apple platforms 6 years ago
not.py Update more file headers across all of the LLVM projects in the monorepo 6 years ago
sym_diff.py Update more file headers across all of the LLVM projects in the monorepo 6 years ago
sym_extract.py Make the sym_diff utilities more useful. 6 years ago
sym_match.py Update more file headers across all of the LLVM projects in the monorepo 6 years ago