llvm-capstone/libcxx
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
..
benchmarks [libc++][CMake] Refactor how we link against system libraries 2019-04-30 15:44:19 +00:00
cmake [libcxx][libcxxabi] Remove the unused CMake checks 2019-05-30 06:08:56 +00:00
docs Make GCC in C++03 Unsupported 2019-06-13 00:37:25 +00:00
fuzzing Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
include Use C++11 implementation of unique_ptr in C++03. 2019-06-23 20:47:21 +00:00
lib [libc++] Update ABI list for ABI v2 2019-06-17 19:37:26 +00:00
src [libc++] Avoid using timespec when it might not be available 2019-06-21 08:33:47 +00:00
test Use C++11 implementation of unique_ptr in C++03. 2019-06-23 20:47:21 +00:00
utils [libcxx] [test] Read files as bytestrings to fix py3 encoding issues 2019-06-24 09:40:33 +00:00
www [libc++] Recommit r363692 to implement P0608R3 2019-06-20 22:09:40 +00:00
.arcconfig
.clang-format
.gitignore
appveyor-reqs-install.cmd Attempt to upgrade compiler used by appveyor builds 2019-04-03 20:40:01 +00:00
appveyor.yml disable appveyor config for MSVC 2015 2019-04-03 20:36:51 +00:00
CMakeLists.txt Fix placement of -Wno-ignored-attributes 2019-06-23 00:31:18 +00:00
CREDITS.TXT
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
NOTES.TXT
TODO.TXT