Revert r374671: "[lit] Try errors="ignore" for decode introduced by r374665"
authorJoel E. Denny <jdenny.ornl@gmail.com>
Sat, 12 Oct 2019 18:50:57 +0000 (18:50 +0000)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Sat, 12 Oct 2019 18:50:57 +0000 (18:50 +0000)
This series of patches still breaks a Windows bot.

llvm-svn: 374675

llvm/utils/lit/lit/builtin_commands/diff.py

index c2ea5d8..d851c4c 100644 (file)
@@ -97,7 +97,7 @@ def compareTwoTextFiles(flags, filepaths, filelines_bin, encoding):
                      n = flags.num_context_lines):
         if hasattr(diff, 'decode'):
             # python 2.7
-            diff = diff.decode(errors="ignore")
+            diff = diff.decode(errors="backslashreplace")
         sys.stdout.write(diff)
         exitCode = 1
     return exitCode