Version: 1.6.4 (using KDE KDE 3.5.4) Installed from: NetBSD pkgsrc Compiler: gcc version 3.3.3 (NetBSD nb3 20040520) OS: NetBSD - Connect to remote machine using ssh - Change Konsole charset to utf-8 - Use any application that will output non-ASCII characters (Cyrillic, for example). - From time to time, one or more characters will be substituted by 'replacement character'; these usually go away after a refresh. I first noticed the problem in irssi (IRC client), but can easily reproduce it just by 'cat'ing a text file to stdout.
Created attachment 19016 [details] cat this file to stdout.
Created attachment 19017 [details] corrupted display
Same problem here. I get random characters corruption using UTF-8 cyrillic on Konsole 1.6.4 (FreeBSD 6.2, KDE 3.5.4). I'm working locally so the ssh seem irrelevant to the problem.
I am not able to reproduce this in KDE 3.5.6 using Qt 3.3.6. There is a slightly different problem which shows up in KDE 4 when catting the attached file where three or four lines are one character shorter than the others.
Perhaps the corrupted character's encoded form is split between two fixed-size buffers (given the look of corrupted display)...
> Perhaps the corrupted character's encoded form is split between > two fixed-size buffers (given the look of corrupted display)... I thought about that, but internally Konsole uses a Qt class to do the decoding which can remember state information between calls. So if you decode a buffer which ends with the first half of a two-byte character, that final character will not be added to the output until the other half is available when the next batch of input comes in. But yes, I agree that I think this is where something may be going wrong. I cannot reproduce the problem in KDE 3, but under KDE 4 it does not show up if you execute: cat file-attached-to-this-report | sed '' Can anyone who is able to reproduce this in KDE 3 try running the above command?
Interesting. I no longer can reproduce this on KDE 3.5.5 / Konsole 1.6.5 / Qt 3.3.6 by cat'ing the file... I'll see if it appears in ssh session.
I tried to run the above command. It shows the text without problems. However if I try to view the file with less, it shows corrupted text. Hope that helps.
Downgraded just the Konsole to 1.6.4 (KDE is still at 3.5.5) -> still cannot reproduce the bug. Will try to downgrade to 3.5.4...
Created attachment 19577 [details] Normal display, using sed ''
Created attachment 19578 [details] Corrupted display
Never saw the problem again in 3.5.6/1.6.6.
Doesn't occur in 3.5.7/1.6.6 either.