When I use Konsole and press backspace when entering UTF-8 non-ASCII text (Cyrillic in my case), weird characters appear in the input that the program I run gets. They cause Python programs to crash, being unable to process the encoding. If I just do “cat > qqq” and use backspace, I get characters like this:
[mramendi@ramendik-2021 ~]$ cat > qqq
пеф [backspace was used before the last letter was entered]
[mramendi@ramendik-2021 ~]$ cat qqq
пе�ф
The problem does not happen in the XFCE terminal on the same machine in the same KDE Plasma session.
Please advise what to do to fix - or if I should raise a bug.
Fedora 41
Konsole 25.04.2
Plasma 6.3.5
locale en_IE.UTF-8
1 Like
It seems like a bug.
I can confirm this happens on Konsole, but not on XTerm on the same machine and user-session.
Can you check bugs.kde.org for any existing report about this?
And if there aren’t any, open a new one?
My installation details:
Operating System: openSUSE Tumbleweed 20250613
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Kernel Version: 6.15.2-1-default (64-bit)
Graphics Platform: X11
My language and locale environment variables:
~ $ printenv | grep -E '(LANG|LC)' | sort
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ADDRESS=pt_BR.UTF-8
LC_COLLATE=C.UTF-8
LC_CTYPE=en_US.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_NUMERIC=C.UTF-8
LC_PAPER=pt_BR.UTF-8
LC_RESPONSE=en_US.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
It’s a regression due to the port to Qt6 (QTextCodec is deprecated, and some code had to be ported to QStringEncoder/Decoder, introducing this bug in the process).
As a workaround, while the bug is being fixed, you can do:
stty iutf8
and from then on, backspace should work correctly.
1 Like