Bug 445292

Summary: Dolphin does not display newline character in file names
Product: [Applications] dolphin Reporter: Yann Salmon <contact>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fanzhuyifan, kfm-devel, nate
Priority: NOR    
Version: 19.12.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=452587
Latest Commit: Version Fixed In:

Description Yann Salmon 2021-11-10 20:53:01 UTC
SUMMARY
When a file name contains special characters (ie. newline), they are not visible in the displayed name.

STEPS TO REPRODUCE
Using Python to avoid any bizarre things with how shells interpret special characters in the input :
1. os.chdir("/tmp")
2. open("test\ntest", "w")
3. open("testtest", "w")
4. open("test\rtest", "w")
5. Show /tmp in dolphin

OBSERVED RESULT
Three files that appear as testtest ; only by using the renaming tool does the newline appear (but the \n and \r remain indistinguishable).

EXPECTED RESULT
Some visual clue that the filename contains a newline character.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
This might be used to craft a file mimicking another file.

Inserting a tabulation gives a clue (the tabulation is displayed).
Inserting other special characters (eg. ASCII 1 or 2) gives a small black box with the character mnemonic.
Comment 1 fanzhuyifan 2023-10-12 03:21:52 UTC

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