Bug 445292 - Dolphin does not display newline character in file names
Summary: Dolphin does not display newline character in file names
Status: RESOLVED DUPLICATE of bug 422998
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: 19.12.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-10 20:53 UTC by Yann Salmon
Modified: 2023-10-12 03:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***