Version: (using KDE KDE 3.5.4)
Installed from: Compiled From Sources
Email: Jonas Hurrelmann <firstname.lastname@example.org>
the latest konsole has a bug decoding UTF-8 (introduced with the "speedup" patch).
When checking for the next control code in TEmulation::onRcvBlock the loop runs until len but as the toUnicode call uses one additionally char it faces a 0 at the end causing a wrong character at the end of each block.
Created attachment 17243 [details]
sh script to display incorrect output
Created attachment 17244 [details]
Patch to fix this
SVN commit 570191 by hindenburg:
Fix incorrect unicode char at end of block. Thanks Jonas Hurrelmann for
email and patch.
M +1 -1 TEmulation.cpp
--- branches/KDE/3.5/kdebase/konsole/konsole/TEmulation.cpp #570190:570191
@@ -325,7 +325,7 @@
// Otherwise, bulk decode until the next control code
- for(l = i; l < len; ++l)
+ for(l = i; l < len-1; ++l)
if ((unsigned char) s[l] < 32)
Not needed for KDE4 since this code is no longer used.