We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a4efd2 commit bd53e76Copy full SHA for bd53e76
lldb/packages/Python/lldbsuite/support/encoded_file.py
@@ -31,6 +31,9 @@ def impl(s):
31
# as unicode before attempting to write.
32
if isinstance(s, six.binary_type):
33
s = s.decode(encoding, "replace")
34
+ # Filter unreadable characters, Python 3 is stricter than python 2 about them.
35
+ import re
36
+ s = re.sub(r'[^\x00-\x7f]',r' ',s)
37
return old_write(s)
38
return impl
39
0 commit comments