1. [test] Use system locale for mri-utf8.test (details)
Commit b6f1d1fa0e3ee0e25f22414bf97c05276b934507 by thomasp
[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.
Reviewers: gbreynoo, MaskRay, rupprecht, JamesNagurne, jfb
Subscribers: dexonsmith, llvm-commits
Tags: #llvm
Differential Revision:
llvm-svn: 374318
The file was addedllvm/test/tools/llvm-ar/mri-nonascii.test
The file was removedllvm/test/tools/llvm-ar/mri-utf8.test