summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAaron Smith <aaron.smith@microsoft.com>2018-04-02 20:57:06 +0000
committerAaron Smith <aaron.smith@microsoft.com>2018-04-02 20:57:06 +0000
commitdd9d04ad20e56a20066058a01191f973ab10ec27 (patch)
tree466b32b4dfb6ab24fbb3a355de49b58b24b59b8f /examples
parent01621ff0d614c2e0417fad3fe131e27b0c95e7d2 (diff)
[lit] Fix problem in how Python versions open files with different encodings
Summary: This issue was found when running the clang unit test on Windows. Python 3.x cannot open some of the files that the tests are using with a simple open because of their encoding. Python 2.7+ and Python 3.x both support io.open which allows for an encoding to be specified. This change will determine whether two files being compared should be opened (and then compared) as text or binary and whether to use utf-8 or the default encoding before proceeding with a line-by-line comparison. Patch by Stella Stamenova! Reviewers: zturner, llvm-commits, rnk, MaggieYi Reviewed By: zturner Subscribers: asmith, MatzeB, stella.stamenova, delcypher, llvm-commits Differential Revision: https://reviews.llvm.org/D43165 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions