easymodo / qimgv

Image viewer. Fast, easy to use. Optional video support.
GNU General Public License v3.0
2.35k stars 167 forks source link

deleted files with non-ASCII characters have wrong path, are unable to be restored from trash, or end up with wrong filenames #476

Open ad8e opened 1 year ago

ad8e commented 1 year ago

Kubuntu 23.04

Reproducer 1:

  1. Create a folder with a UTF-8 character. For example, I created mine at "/home/a/Downloads/û/"
  2. Put any image file inside. Mine is "/home/a/Downloads/û/a.jpg"
  3. Open the new file in qimgv, delete it using qimgv.
  4. Go to Trash. Try to restore the deleted image. You will receive the error message "The directory /home/a/Downloads/�/ 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."

Reproducer 2:

  1. Create an image file with a UTF-8 character in its filename. For example, I named mine "û.jpg"
  2. Open the new file in qimgv, delete it using qimgv.
  3. Go to Trash. Restore the deleted image. The file is now named "�.jpg", which is the wrong name.