Closed Frederick888 closed 3 years ago
Thanks and a good suggestion!
Can you try to replace this line
# text = sys.stdin.read()
text = sys.stdin.buffer.read().decode("utf-8", "ignore")
to see if it fixes the problem?
@laktak Yes it did fix it. Thank you.
I was using fzf & delta to view the git history graph of eclipse.jdt.ls and bumped into the following exception:
So I modified the code to the following and reproduced the case:
(15361 is 0x3c01 btw)
There is a 0xA0 (non-breaking space?) got squeezed into a bunch of U+02500/0xE29480 (box drawings light horizontal) for some reason. Visually it looked alright:
Since in terminal there are sometimes weird control/drawing characters, I wonder if it's possible to ignore them?