Bug 422998 - Newlines in filenames are not shown in any way
Summary: Newlines in filenames are not shown in any way
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: fanzhuyifan
URL:
Keywords:
: 445292 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-06-15 01:17 UTC by catlover2
Modified: 2023-10-24 10:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
dolphin exibiting the bug (48.69 KB, image/png)
2020-06-15 01:17 UTC, catlover2
Details
pcmanfm rendering the newline-laden filename in what I think is a sensible way (39.32 KB, image/png)
2020-06-15 01:18 UTC, catlover2
Details

Note You need to log in before you can comment on or make changes to this bug.
Description catlover2 2020-06-15 01:17:42 UTC
Created attachment 129372 [details]
dolphin exibiting the bug

SUMMARY
Newlines in filenames are not shown in any way.

STEPS TO REPRODUCE
1. Navigate to a directory containing files which have newlines in their names


OBSERVED RESULT
The newlines in the filenames are not rendered in dolphin at all.

EXPECTED RESULT
The newlines should be visually distinguished in some way, e.g. actually showing the filename on multiple lines, showing escape sequences, etc.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
I accidentally put a bunch of newlines in filenames because of this bug, which lead me to discover another quirk: https://bugs.kde.org/show_bug.cgi?id=422997

I uploaded two screenshots. One is of dolphin exibiting the bug. The other is an example of pcmanfm rendering the newline-laden filename in what I think is a sensible way.
Comment 1 catlover2 2020-06-15 01:18:19 UTC
Created attachment 129373 [details]
pcmanfm rendering the newline-laden filename in what I think is a sensible way
Comment 2 fanzhuyifan 2023-10-12 03:21:17 UTC
Can reproduce

Operating System: Arch Linux 
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
Kernel Version: 6.5.6-273-tkg-eevdf-llvm (64-bit)
Graphics Platform: X11
Processors: 20 × 13th Gen Intel® Core™ i9-13900H
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Zephyrus G16 GU603VV_GU603VV
System Version: 1.0
Comment 3 fanzhuyifan 2023-10-12 03:21:52 UTC
*** Bug 445292 has been marked as a duplicate of this bug. ***
Comment 4 Bug Janitor Service 2023-10-22 19:05:20 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/636
Comment 5 fanzhuyifan 2023-10-24 10:32:58 UTC
Git commit 8ef3c7bc42bad4397bed0711f4317ebad9c0f8f1 by Yifan Zhu.
Committed on 23/10/2023 at 19:09.
Pushed by meven into branch 'master'.

Display newline in filename as Unicode line break
Related: bug 444747

M  +13   -2    src/kitemviews/kstandarditemlistwidget.cpp
M  +7    -0    src/kitemviews/kstandarditemlistwidget.h

https://invent.kde.org/system/dolphin/-/commit/8ef3c7bc42bad4397bed0711f4317ebad9c0f8f1