Summary: | dolphin can't handle files with its filename not correctly encoded with current locale | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | David <StormByte> |
Component: | general | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alessandro.ufms, anarky, andreas_nordal_4, andresbajotierra, boski_cinek, eike.welk, eth, finex, info, kdelibs-bugs, ketetefid, kontakt, nevion, phobeus, pierino.the.living.joke, ralf, vdboor |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdelibs/f4269ef3498581964e8a1a13cd0d6d7f19c88762 | Version Fixed In: | 4.11.0 |
Attachments: |
program to create filename with all bytes permitted by Linux VFS
Files with broken names. |
Description
David
2008-03-13 14:01:54 UTC
This is related/duplicate of bug 165400 / bug 165044 Same here with KDE 4.1.2 from debian experimental. This is a quite annoying one ! It also seems quite a lot of people encounter this, the status could be changed from UNCONFIRMED to something else. I confirm this bug. The bug #165044, which is the same as this, has been closed as WONTFIX. I've asked to reopen it. When it will be reopened/solved. This bug shouls be marked as dup. *** Bug 160072 has been marked as a duplicate of this bug. *** Created attachment 40970 [details]
program to create filename with all bytes permitted by Linux VFS
Forget encoding. Konqueror and Dolphin should take the bytes in a filename literally! I just submitted a test program that creates a file with a name containing all 254 bytes permitted by Linux VFS. This bug is not solved before Konq and Dolphin can open, rename and delete such files. By the way, I stumbled upon this bug today using Konqueror 4.4.0 and also confirmed it in Dolphin 1.4. What I did was to unzip a .zip archive from a friend using Windows - yet another source of non-UTF-8 filenames. *** This bug has been confirmed by popular vote. *** Not just dolphin, and I understand it's a limitation of qfile/qt... but see, I don't care when I see everybody else working with broken encodings just fine. Rox-filer does a decent job even... I'm sorry to say this is plain unacceptable. Limitation of qfile/qt? Never ever store a filename in a QString for later use! Doing that involves text codecs. Use QByteArray if you are so extremely keen. I think this bug is ancient enough to be fixed: QT has evolved a lot (in case it is QFile related), and is present since KDE 3.5!!! I know it is not a life or death bug, but it is very very annoying... Any posibilities it can be fixed soon enough? This stoneage bug REALLY should get fixed asap or at least a workaround besides going to the shell and do deletes/renames manually.... subscribe It would be great if some solution would be implemented. I have just discovered some files with broken file names on my computer. When these files are in the trash, the trashcan can no longer be emptied. Created attachment 67752 [details]
Files with broken names.
An archive that contains files with broken names. They were created years ago by "kpdf". The folder that contained these files prevented that the trash could be completely emptied.
Any news on this issue? It is actually one of the most painful issues having since switched to KDE 4 and especially native speakers might not be fully aware of this issue. Especially unexperience users will be completely caught up with some files they are not able to remove from the system anymore or making the trash bin broken. Eike actually provided some very good examples that allows to reproduce this issue very easily. I am not sure, why this issue seems to be that complicate it cannot be fixed. Maybe one developer with more insight in KDE might point out, where exactly the problem is originated? Confirm being present still with KDE 4.8.3 *** Bug 168219 has been marked as a duplicate of this bug. *** *** Bug 261021 has been marked as a duplicate of this bug. *** Git commit f4269ef3498581964e8a1a13cd0d6d7f19c88762 by Szókovács Róbert. Committed on 01/07/2013 at 10:28. Pushed by szokovacs into branch 'master'. Fix/workaround for legacy encoded filename handling This patch works around the problem of filenames that are not valid UTF8 strings: in KLocalePrivate::initFileNameEncoding() KDE sets the QFile's encoding/decoding function, to to/fromUTF8() in QString, which in turn calls QUtf8's converter function. I replaced this with the said functions' copy/pasted version and changed it, so when it encounters an invalid UTF8 string, it will encode it byte by byte, mapping the lower 128 their normal unicode place and the upper 128 to U+10FE00-U+10FE7F, and the decoder reverses it. REVIEW: 110043 M +180 -2 kdecore/localization/klocale_kde.cpp http://commits.kde.org/kdelibs/f4269ef3498581964e8a1a13cd0d6d7f19c88762 |