! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Change filename encoding
Status:
RESOLVED: MOVED
Severity:
enhancement

Comments

Description Mathias Brodala 2009-05-09 12:42:50 CEST
If you exchange files with systems having different filesystem encodings you will eventually end up with broken filenames.

I think having an option to change filename encodings from within Thunar’s bulk renamer could prove to be useful in such situations.

A good example of this functionality is provided by Ex Falso, but unfortunately only for media tags, not for files.
Comment 1 alexxcons editbugs 2017-06-21 23:31:18 CEST
Mail from Péter, received on thunar-dev mailing list:

Hi,

Please add to the wish list:
To convert file names if source and target text encoding differs.
(In order to fully integrate possibly differently encoded filesystems into one.)

For example, an smb: location can have utf8-encoded filenames and the local filesystem can have iso88592-encoded (latin2) filenames. When copying a file, then the (abstract) *characters* are to be preserved. Not the bytes. In order to preserve the characters, Thunar should first decode (interpret) the byte sequence, then when writing out (to a dirrefent location) it should encode the characters into byte sequence.

Already exists a G_FILENAME_ENCODING environment variable, but it cannot distinguish nor express different locations. With "G_FILENAME_ENCODING=UTF8,iso88592": when I copy a file from a utf8-location to a latin2-location then Thunar copies the filename byte sequence unchanged (despite that probably, in order to show the name properly, Thunar did decoding, from bytes to characters). When I copy a file from latin2-location to utf8-location then Thunar fails with "Invalid argument".

rsync do have options to translate (=preserve characters) filenames.
"--iconv=LOCAL,REMOTE"  "Rsync can convert filenames between character sets using this option."

smbnetfs also has config options for converting filenames.
> Module options:
>    [iconv]
>        -o from_code=CHARSET
>               original encoding of file names (default: UTF-8)
>        -o to_code=CHARSET
>               new encoding of the file names (default: UTF-8)

I cannot (of course) surely determine exactly which software component's business is (should be) such a glueing. Please feel free to determine (forward this request to the proper recipients). (It may be, for example, "gvfs-mount" or such component.)
Comment 2 Git Bot editbugs 2020-05-26 23:08:11 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/18.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #5346

Reported by:
Mathias Brodala
Reported on: 2009-05-09
Last modified on: 2020-05-26

People

Assignee:
Jannis Pohlmann
CC List:
3 users

Version

Attachments

Additional information