[PATCH] D82754: [lit] Prevent hang when lit sees non-ASCII characters
Richard Barton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 29 04:17:17 PDT 2020
richard.barton.arm created this revision.
richard.barton.arm added reviewers: jdenny, mehdi_amini.
Herald added subscribers: llvm-commits, delcypher.
Herald added a project: LLVM.
As per discussion in D69207 <https://reviews.llvm.org/D69207>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82754
Files:
llvm/utils/lit/lit/display.py
Index: llvm/utils/lit/lit/display.py
===================================================================
--- llvm/utils/lit/lit/display.py
+++ llvm/utils/lit/lit/display.py
@@ -86,7 +86,7 @@
errors="replace")
except UnicodeDecodeError:
pass
- out = out.decode(encoding=sys.stdout.encoding)
+ out = out.decode(encoding=sys.stdout.encoding, errors="ignore")
print(out)
print("*" * 20)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82754.274045.patch
Type: text/x-patch
Size: 517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200629/ff6a334b/attachment-0001.bin>
More information about the llvm-commits
mailing list