Summary: | Random display corruption in UTF-8 mode | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | shattered |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | esigra |
Priority: | NOR | ||
Version: | 1.6.4 | ||
Target Milestone: | --- | ||
Platform: | NetBSD pkgsrc | ||
OS: | NetBSD | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
cat this file to stdout.
corrupted display Normal display, using sed '' Corrupted display |
Description
shattered
2006-12-23 14:41:10 UTC
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. |