aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorThomas Preud'homme <thomasp@graphcore.ai>2019-10-10 11:48:30 +0000
committerThomas Preud'homme <thomasp@graphcore.ai>2019-11-04 15:25:45 +0000
commit0bab0538d8cc0de242ed2936a4766930cfc934d2 (patch)
tree6388d72db9836571e3928b8efc0820dbb583aafe /llvm/lib/Support/VirtualFileSystem.cpp
parentbf6744dfb244dbd2a4abe635f57e45218292743f (diff)
downloadllvm-0bab0538d8cc0de242ed2936a4766930cfc934d2.zip
llvm-0bab0538d8cc0de242ed2936a4766930cfc934d2.tar.gz
llvm-0bab0538d8cc0de242ed2936a4766930cfc934d2.tar.bz2
[test] Use system locale for mri-utf8.test
Summary: llvm-ar's mri-utf8.test test relies on the en_US.UTF-8 locale to be installed for its last RUN line to work. If not installed, the unicode string gets encoded (interpreted) as ascii which fails since the most significant byte is non zero. This commit changes the test to only rely on the system being able to encode the pound sign in its default encoding (e.g. UTF-16 for Microsoft Windows) by always opening the file via input/output redirection. This avoids forcing a given locale to be present and supported. A Byte Order Mark is also added to help recognizing the encoding of the file and its endianness. Finally the XFAIL on system-darwin is removed since the test actually passes fine on Mac OS X and XFAIL was only added because it failed before. Reviewers: gbreynoo, MaskRay, rupprecht, JamesNagurne, jfb Subscribers: dexonsmith, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68472
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions