Bug 505582 - Executing the command "cat /usr/bin/rm" causes all subsequent lowercase letters typed into konsole to be gibberish until app is restarted.
Summary: Executing the command "cat /usr/bin/rm" causes all subsequent lowercase lette...
Status: RESOLVED UPSTREAM
Alias: None
Product: konsole
Classification: Applications
Component: font (other bugs)
Version First Reported In: 25.04.2
Platform: Fedora RPMs Linux
: NOR task
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-14 08:19 UTC by 76692e6c656e696e
Modified: 2025-06-23 00:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
the commands "echo abcdefghijklmnopqrstuvwxyz", "echo ABCDEFGHIJKLMNOPQRSTUVWXYZ", "echo !@#$%^&*()" , and "echo 1234567890" executed after replication. (43.73 KB, image/png)
2025-06-14 08:19 UTC, 76692e6c656e696e
Details
attachment-547694-0.html (3.07 KB, text/html)
2025-06-14 12:18 UTC, tcanabrava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 76692e6c656e696e 2025-06-14 08:19:34 UTC
Created attachment 182259 [details]
the commands "echo abcdefghijklmnopqrstuvwxyz", "echo ABCDEFGHIJKLMNOPQRSTUVWXYZ", "echo !@#$%^&*()" , and "echo 1234567890" executed after replication.

STEPS TO REPRODUCE
1. Open Konsole
2. Execute "cat /usr/bin/rm"

OBSERVED RESULT
The terminal is filled with � [among other] characters [as is the norm when using cat on a binary file], but the lowercase letters in the user/hostname will be gibberish. Typing and executing "clear" will clear the terminal, but the user/hostname will still be gibberish and so will any subsequent lowercase letters entered. Characters that are displayed on the terminal due to a cat operation on a text file are not affected. 

EXPECTED RESULT
Lowercase letters remain legible.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 42
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
The gibberish is not randomized, either between separate terminal sessions or separate occurrences of the same letter. Does not persist through app restarts, and it does not stop commands from being recognized.
Comment 1 tcanabrava 2025-06-14 12:18:51 UTC
Created attachment 182267 [details]
attachment-547694-0.html

unrelated to konsole - seems like a bash or zsh ossue

On Sat, 14 Jun 2025 at 04:19 <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=505582
>
>             Bug ID: 505582
>            Summary: Executing the command "cat /usr/bin/rm" causes all
>                     subsequent lowercase letters typed into konsole to be
>                     gibberish until app is restarted.
>     Classification: Applications
>            Product: konsole
>       Version First 25.04.2
>        Reported In:
>           Platform: Fedora RPMs
>                 OS: Linux
>             Status: REPORTED
>           Severity: task
>           Priority: NOR
>          Component: font
>           Assignee: konsole-devel@kde.org
>           Reporter: 76692e6c656e696e@gmail.com
>   Target Milestone: ---
>
> Created attachment 182259 [details]
>   --> https://bugs.kde.org/attachment.cgi?id=182259&action=edit
> the commands "echo abcdefghijklmnopqrstuvwxyz", "echo
> ABCDEFGHIJKLMNOPQRSTUVWXYZ", "echo !@#$%^&*()" , and "echo 1234567890"
> executed
> after replication.
>
> STEPS TO REPRODUCE
> 1. Open Konsole
> 2. Execute "cat /usr/bin/rm"
>
> OBSERVED RESULT
> The terminal is filled with � [among other] characters [as is the norm when
> using cat on a binary file], but the lowercase letters in the user/hostname
> will be gibberish. Typing and executing "clear" will clear the terminal,
> but
> the user/hostname will still be gibberish and so will any subsequent
> lowercase
> letters entered. Characters that are displayed on the terminal due to a cat
> operation on a text file are not affected.
>
> EXPECTED RESULT
> Lowercase letters remain legible.
>
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: Fedora Linux 42
> KDE Plasma Version: 6.3.5
> KDE Frameworks Version: 6.14.0
> Qt Version: 6.9.1
>
> ADDITIONAL INFORMATION
> The gibberish is not randomized, either between separate terminal sessions
> or
> separate occurrences of the same letter. Does not persist through app
> restarts,
> and it does not stop commands from being recognized.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 2 John Kizer 2025-06-23 00:01:13 UTC
Hi - this is a behavior of the underlying shell responding to control characters, a layer below what Konsole handles. The following links might be helpful reference:

https://unix.stackexchange.com/questions/79684/fix-terminal-after-displaying-a-binary-file
https://unix.stackexchange.com/questions/50752/how-to-fix-a-terminal-after-a-binary-file-has-been-dumped-inside-it