Bug 485497 - It is not possible to restore a file with a Cyrillic path when it was moved using QFile::moveToTrash
Summary: It is not possible to restore a file with a Cyrillic path when it was moved u...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.08.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-13 18:01 UTC by Roman Golubev
Modified: 2024-04-13 21:48 UTC (History)
2 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 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