Bug 503630 - KDE clipboard inappropriately converts tabs to spaces
Summary: KDE clipboard inappropriately converts tabs to spaces
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: copy-paste (other bugs)
Version First Reported In: 25.04.0
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-01 18:34 UTC by dwayne
Modified: 2025-05-06 13:29 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dwayne 2025-05-01 18:34:21 UTC
Steps to Reproduce:

    Create a file /tmp/test containing a literal tab character between characters, such as:
    a<tab>b

    Use cat /tmp/test | hexdump -C to confirm the file contains a 09 byte (tab) between the characters and that the terminal is not converting tabs to spaces.

    Display the file using cat /tmp/test.

    Select the displayed line with the mouse.

    Paste it using right-click into:

        another Konsole window, or

        an X11 terminal

Expected Result:
The pasted text includes a tab character.

Actual Result:
The pasted text contains spaces instead of a tab.

Additional Notes:
While the tab to spaces conversion is my primary concern, I don't believe that the clipboard should ever modify the copied text explicitly configured to do so. The default behavior should preserve the original data exactly, including whitespace characters like tabs.
Comment 1 Nate Graham 2025-05-02 15:14:14 UTC
I can reproduce the issue on current git master too.