resynchronizes too late after invalid utf-8 -
By gnach... on September 06, 2010 06:14 (imported from Google Code)
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:
Expected output (the output in most terminal emulators, including Mac's default terminal):
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'
abcd? followed by the prompt in the next line
abcd### immediately followed by the prompt (no newline)
iTerm 0.10; Mac 10.5.8