[llvm] [Lit] Change processRedirects to open all files in binary mode (PR #194368)
Benjamin Stott via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 08:13:10 PDT 2026
BStott6 wrote:
@perry-ca Hey, sorry for the inconvenience. I'm wondering if you could share details about the specific tests failing/bot links. I am wondering if it is a character encoding issue when Lit decodes the bytes it read from the subprocess - if so, I wonder if changing the encoding used to decode the subprocess output from UTF-8 to `locale.getpreferredencoding()` (as I understand, the default used by `Popen` with `text=True`) will solve the issue. I've attached a patch to do this; would you mind checking if this solves the issues?
[patch.txt](https://github.com/user-attachments/files/27444838/patch.txt)
https://github.com/llvm/llvm-project/pull/194368
More information about the llvm-commits
mailing list