Re: JFS default behavior (was: UTF-8 in file systems? xfs/extfs/etc.)

Valdis.Kletnieks
2004-02-16T15:19:06Z

[-- Attachment #1: Type: text/plain, Size: 957 bytes --]

On Mon, 16 Feb 2004 15:03:38 +0100, Eduard Bloch said:

> - convert all files from the previous charset to UTF-8 overnight
> if the previous charset was unknown, first make sure that you can
> guess it for all users and contact users that have files with
> suspicous filenames (eg. not convertable from Latin1). Or look trough
> their shell/X config files (*)

Hazardous.

> - in libc, implement a recoding function to convert file names from
> LC_CTYPE to the underlying UTF-8 encoding

Hmm.. could be fun if somebody is calling 'open', and the UTF-8 encoding
requires the insertion of extra characters to encode it - what do you do then?
That looks like a security hole just waiting to happen. Probably has lots of
lurking corner cases too - what if you creat() a file, then do a readdir() and
strcmp() each entry looking for your file (while comparing a filename smashed
to UTF-8 to the original unsmashed string)?

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]