diff --git a/llvm/test/tools/llvm-ar/mri-utf8.test b/llvm/test/tools/llvm-ar/mri-utf8.test --- a/llvm/test/tools/llvm-ar/mri-utf8.test +++ b/llvm/test/tools/llvm-ar/mri-utf8.test @@ -16,4 +16,4 @@ # include arguments with non-ascii characters. # Python on Linux defaults to ASCII encoding unless the # environment specifies otherwise, so it is explicitly set. -RUN: env LANG=en_US.UTF-8 %python -c "assert open(u'\U000000A3.txt', 'rb').read() == b'contents\n'" +RUN: %python -c "assert open(b'\xC2\xA3.txt', 'rb').read() == b'contents\n'"