resynchronizes too late after invalid utf-8 -
By gnach... on September 06, 2010 06:14 (imported from Google Code)
From https://sourceforge.net/tracker/?func=detail&aid=2995184&group_id=67789&atid=518973
UTF-8 has the nice property that you can immediately resynchronize after an invalid sequence. iTerm, however, misinterprets a couple of valid characters after the faulty UTF-8 sequence.
Example: print the string "abcdéfghi" in Latin-1 encoding with this command:
echo $'abcd\351fghi'
Expected output (the output in most terminal emulators, including Mac's default terminal):
abcd?fghi
iTerm's output:
abcd###hi
As you can see, 'f' and 'g' are not printed correctly.
Another example: strip the characters following the invalid one, except for the newline: echo $'abcd\351'
Expected output:
abcd? followed by the prompt in the next line
Actual output:
abcd### immediately followed by the prompt (no newline)
iTerm 0.10; Mac 10.5.8