[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linux and UTF8 filenames



Pablo Saratxaga <pablo@xxxxxxxxxxxxxxxx> writes:

> What will more likely happen, is that Linux distributions will include
> a special conversion tool so that when the switch to utf-8 is done,
> the filenames can be converted (you tell the tool your old encoding).
> Good tools will be able to work on directories and files instead of whole
> partitions, allowing for different possible legacy encodings for differents
> directories under /home

Currently I use a simple script using 'iconv' to convert filenames in
legacy encodings to UTF-8 (attached). For example, if I have a
directory containing file with names in ISO-8859-1 encoding, I call

   mviconv -f ISO-8859-1 *

and then all file names in that directory are UTF-8 encoded.

> Good tolls will also be able to not convert a filename that already is
> a valid utf-8 sequence.

My script doesn't yet do any fancy stuff like that, it is still very
primitive.

Attachment: mviconv
Description: Binary data

-- 
Mike Fabian   <mfabian@xxxxxxx>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。