Bug 412974

Summary: Files whose names end with a line feed not handled properly
Product: [Applications] dolphin Reporter: kde-bugs
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fanzhuyifan, kfm-devel
Priority: NOR    
Version: 19.08.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kde-bugs 2019-10-15 15:22:51 UTC
If you want to rename such a file, you're presented with what looks like an empty file name. (You're presented with the file name if you press the left arrow button.) There is also incompatibility with plug ins. If you use the Nextcloud client, such files are neither shown as synced nor unsynced. The Nextcloud entry in the context menu doesn't work either.


STEPS TO REPRODUCE
1. Create a file whose name ends in a line feed (Unix newline character).
2. Rename it.

OBSERVED RESULT
Not much to observe.


EXPECTED RESULT
Printable characters being printed.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro 18.1, KDE Frameworks 5.62.0
Qt Version: Qt 5.13.1 (built against 5.13.1)
Comment 1 fanzhuyifan 2023-10-12 03:26:15 UTC
Marking this as a duplicate of 452587 since the other bug has more information.
This is a special case of 452587 where the name ends in the newline character.

*** This bug has been marked as a duplicate of bug 452587 ***