From dadea982aa155e446b936566fdbd993bc16a71e1 Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Sat, 12 Oct 2019 17:23:25 +0000 Subject: [PATCH] [lit] Try errors="ignore" for decode introduced by r374665 Still trying to fix the same error as in r374666. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374671 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/lit/lit/builtin_commands/diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/lit/lit/builtin_commands/diff.py b/utils/lit/lit/builtin_commands/diff.py index d851c4cb70d..c2ea5d86b9c 100644 --- a/utils/lit/lit/builtin_commands/diff.py +++ b/utils/lit/lit/builtin_commands/diff.py @@ -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="backslashreplace") + diff = diff.decode(errors="ignore") sys.stdout.write(diff) exitCode = 1 return exitCode -- 2.40.0