Bug 392317 - Dolphin cannot handle files with non-UTF8 characters in its name
Summary: Dolphin cannot handle files with non-UTF8 characters in its name
Status: RESOLVED DUPLICATE of bug 165044
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.44.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-25 17:02 UTC by Eduardo Sánchez Muñoz
Modified: 2024-06-24 23:22 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Sánchez Muñoz 2018-03-25 17:02:05 UTC
If you create a file or directory with an non-UTF8 name (for example, with touch test$'\341'), Dolphin will show it in directory listings with an unicode replacement character (�), but it will not be able to handle the file in any other way, such as renaming, deleting or opening it.
Comment 1 Eduardo Sánchez Muñoz 2018-03-25 17:08:18 UTC
I forgot to say that Dolphin will just say that the file does not exist.
Comment 2 Kai Uwe Broulik 2018-03-26 08:05:32 UTC
Looks like a bug in KIO, the same also happens in file dialog
Comment 3 Kai Uwe Broulik 2018-03-26 08:08:31 UTC
In KRun it fails in

const QString localPath = d->m_strURL.toLocalFile();
        if (!QFile::exists(localPath)) {

Perhaps somewhere it actually replaces the broken unicode character by the replacement character, losing the original character, and then the file names don't match up and it aborts
Comment 4 Christoph Feck 2018-03-26 12:28:54 UTC
This is bug 165044.
Comment 5 Christoph Cullmann 2024-06-24 20:01:38 UTC

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