Restoring trashed files to different drive will show backslash and hex codes in filename

Confirmed for Thunar Version 4.21.5 (issue description updated)

Description

How to reproduce:

  • start Thunar
  • go to a FAT32 formatted flashdrive
  • create new file 'test'
  • trash that file
  • go trash and copy/paste or drag&drop that file back to your home directory

What happens:

  • A file named '\media\user\3F57-DA8B.Trash-1000\files\te%20st' is created in $HOME

What should happen:

  • A file named 'te st' should have been created

Notes:

  • When going to Thunar trash and clicking 'Restore' there the bug won't appear, it only appears for drag&drop / copy/cut&paste to some different location

Originally Submitted by xyz..@..il.com

Assigned to Xfce Bug Triage

Link to original bug (#12637)

Edited by Alexander Schwinn