Skip to content

Commit 48edae3

Browse files
author
Thomas Preud'homme
committed
Revert "[test] Use system locale for mri-utf8.test"
This reverts commit r374318 / b6f1d1f. llvm-svn: 374349
1 parent 7650556 commit 48edae3

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

llvm/test/tools/llvm-ar/mri-nonascii.test

Lines changed: 0 additions & 22 deletions
This file was deleted.

llvm/test/tools/llvm-ar/mri-utf8.test

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Test non-ascii archive members
2+
# XFAIL: system-darwin
3+
4+
RUN: rm -rf %t && mkdir -p %t/extracted
5+
6+
RUN: echo "contents" > %t/£.txt
7+
8+
RUN: echo "CREATE %t/mri.ar" > %t/script.mri
9+
RUN: echo "ADDMOD %t/£.txt" >> %t/script.mri
10+
RUN: echo "SAVE" >> %t/script.mri
11+
12+
RUN: llvm-ar -M < %t/script.mri
13+
RUN: cd %t/extracted && llvm-ar x %t/mri.ar
14+
15+
# This works around problems launching processess that
16+
# include arguments with non-ascii characters.
17+
# Python on Linux defaults to ASCII encoding unless the
18+
# environment specifies otherwise, so it is explicitly set.
19+
# The reliance the test has on this locale is not ideal,
20+
# however alternate solutions have been difficult due to
21+
# behaviour differences with python 2 vs python 3,
22+
# and linux vs windows.
23+
RUN: env LANG=en_US.UTF-8 %python -c "assert open(u'\U000000A3.txt', 'rb').read() == b'contents\n'"

0 commit comments

Comments
 (0)