summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/frame/main.c
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-10-10 11:48:30 +0000
commitb6f1d1fa0e3ee0e25f22414bf97c05276b934507 (patch)
tree13cb7059c358cc1ee0ce0343b93fe7500d7efca1 /lldb/packages/Python/lldbsuite/test/python_api/frame/main.c
parent6430adbe647a1837c0476f2c9ecc1c0ef5cba14c (diff)
downloadbcm5719-llvm-b6f1d1fa0e3ee0e25f22414bf97c05276b934507.tar.gz
bcm5719-llvm-b6f1d1fa0e3ee0e25f22414bf97c05276b934507.zip
[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: https://reviews.llvm.org/D68472 llvm-svn: 374318
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame/main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud