[PATCH] D43165: [lit] Fix problem in how Python versions open files with different encodings

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 10:51:14 PST 2018


MatzeB added a comment.

In https://reviews.llvm.org/D43165#1007792, @MatzeB wrote:

> 'Latin-1' seems completely arbitrary and wrong to me. You should rather try to get a stream of bytes rather than have python try to decode the file.


Have you tried open(file, 'rb') or does that not work with difflib?


Repository:
  rL LLVM

https://reviews.llvm.org/D43165





More information about the llvm-commits mailing list