Bug 485497

Summary: It is not possible to restore a file with a Cyrillic path when it was moved using QFile::moveToTrash
Product: [Applications] dolphin Reporter: Roman Golubev <dr64.00>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: bugseforuns, kfm-devel
Priority: NOR    
Version: 23.08.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Roman Golubev 2024-04-13 18:01:26 UTC
SUMMARY
If you move a file containing Cyrillic letters in the path using QFile::moveToTrash Dolphin cannot restore it from the trash.

STEPS TO REPRODUCE
1. Select a file containing Cyrillic characters in its path;
2. Move a file to the trash using the standard Qt function QFile::moveToTrash;
3. Try to restore a file from the trash.

OBSERVED RESULT
An error message window appears:
The directory /home/user/???????/ does not exist anymore, so it is not possible to restore this item to its original location. You can either recreate that directory and use the restore operation again, or drag the item anywhere else to restore it.

EXPECTED RESULT
Restoring a file "Text File.txt" to "/home/user/Проекты/" where it was originally located.

SOFTWARE/OS VERSIONS
Operating System: Void 
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
The bug could not be reproduced in other file managers (nemo and pcmanfm-qt have been tested).
Comment 1 Patrick Silva 2024-04-13 21:48:26 UTC
Possibly duplicate of bug 463751