Bug 182787

Summary: Can't trash files with non-ASCII names
Product: [Applications] dolphin Reporter: Alexey Chernov <4ernov>
Component: generalAssignee: Peter Penz <peter.penz19>
Status: RESOLVED WORKSFORME    
Severity: normal CC: garbage.angel
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alexey Chernov 2009-02-01 21:26:30 UTC
Version:            (using KDE 4.2.0)
Compiler:          GCC 4.3.2 Target: x86_64-unknown-linux-gnu Configured with:  ../gcc-4.3.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,fortran,objc,treelang --disable-multilib --enable-c99 --enable-long-long Thread model: posix
OS:                Linux
Installed from:    Compiled From Sources

It's unable to move to trash files with non-latin (in my case, russian) names. The message box says "File or folder with name ... doesn't exist". Removing permanently (Shift+Del) works ok.
Comment 1 garbage.angel 2009-02-01 22:24:25 UTC
I have a similar issue where I have tried to trash a file with a Japanese file name about few months ago and now every time I try to empty my trash, I get a message: "The file of folder /mnt/X/.Trash-1000/files/[IV]??????.avi does not exist." with what I think is literally a series of question marks. I presume it was improperly encoded filename (not UTF8) and I had even tried running convmv to change it to UTF8 but nothing had worked. And indeed, the file doesn't exist at that location.

The file was deleted through KDE 4.1.x and now with KDE 4.2.0, the message persists.

There is an item in /mnt/X/.Trash-1000/files/ with filename \[IV\]\ \?\?\?\?\?\ -\ \?\?\?\?\?\?\?.trashinfo (a sequence of literal question marks) with the following contents:

[Trash Info]
Path=Home/.P/J/M/%5BIV%5D%20%3F%3F%3F%3F%3F%20-%20%3F%3F%3F%3F%3F%3F%3F
DeletionDate=2008-11-03T13:53:54

If the filename was really just a sequence of question marks, then why did KDE have trouble trashing it?

I can probably just delete the .trashinfo and then it will stop saying the message.
Comment 2 Alexey Chernov 2009-03-17 20:17:37 UTC
Can't reproduce for KDE 4.2.1 with Qt 4.5 final.