SUMMARY *** When creating a new TEXT file two characters are appended: a blank (0x20) and a carriage return (0x0A). It should be empty. *** STEPS TO REPRODUCE 1. Start dolphin 2. From context menu select "Create new" --> "Text file" 3. Confirm a file name (default is "Text File.txt") OBSERVED RESULT The new file is shown in the window to be 2 bytes long. $ od -t x1 -c Text\ File.txt 0000000 20 0a \n 0000002 EXPECTED RESULT The new file should be 0 (zero) bytes long as the user hasn't requested any content. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 5.23.3-1 (available in About System) KDE Plasma Version: 5.23.3-1 KDE Frameworks Version: 5.88.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION
Confirmed still with: Plasma Version : 5.24.5-2 KDE Version : 22.04.1-1 Frameworks Version : 5.94.0-1 Qt5 Version : 5.15.4+kde+r1-1 kate version: 22.04.1
I can also reproduce this. Operating System: KDE neon 5.24 KDE Plasma Version: 5.24.5 KDE Frameworks Version: 5.94.0 Qt Version: 5.15.4 Dolphin Version: 22.04.1 KWrite Version: 22.04.1
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/866
Issue is probably in KIO. I have proposed a merge request to fix that => https://invent.kde.org/frameworks/kio/-/merge_requests/866. But I'm not sure if it's really good (see comment in the merge request).
*** This bug has been marked as a duplicate of bug 297003 ***