[dolphin] [Bug 446019] New: New text file created with 2 chars

Enzo bugzilla_noreply at kde.org
Wed Nov 24 08:48:48 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=446019

            Bug ID: 446019
           Summary: New text file created with 2 chars
           Product: dolphin
           Version: 21.08.3
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-null at kde.org
          Reporter: vincenzo.romano at notorand.it
                CC: kfm-devel at kde.org
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list