Terminal only draws up to the first non-ascii character on a line
|Reported by:||heto||Owned by:||jackburton|
Terminal on hrev28387 draws each line only up to and including the first non-ascii character, such as ä; the rest of the line is left blank. The cursor advances as it should, and the character can be properly copied from the terminal and pasted in another app such as StyledEdit, so the characters seem to be correctly recorded.
The characters can also be revealed by forcing the terminal to draw horizontally sufficiently small pieces at once, for example by dragging the window off the left or right edge of the screen and then slowly dragging the window back on the screen.
The problem does not seem to be dependent on the character encoding. (I tried attaching to a screen session on a server by using screen -rU, detached from it, then changed the encoding from UTF-8 to ISO-8859-1 in the terminal menu and reattached using just screen -r; the terminal was drawn the same way both times.)
Steps to reproduce:
- Write something like the following in StyledEdit and save as non-ascii.txt:
Tämä tekstitiedosto sisältää ääkkösiä.
- Open Terminal and type cat non-ascii.txt
- You should see a line which seems to have only the letters Tä on it; you can try horizontally covering and revealing the window with the StyledEdit window and copy-pasting the text back to StyledEdit.
I'll attach a screenshot, also available at http://www.students.tut.fi/~vettenrh/dump/haiku_terminal_nonascii.png, that should demonstrate the issue. The same command has been run in both Terminal 3 and Terminal 4, but while the Terminal 3 window has not been covered after the output, I have dragged the Terminal 4 window out of the right edge of the screen and slowly back.
Change History (13)
comment:2 by , 14 years ago
|Component:||Applications/Terminal → System/libroot.so|
comment:3 by , 14 years ago
|Blocked By:||1855 removed|
|Component:||System/libroot.so → Applications/Terminal|