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

From: Valdis . Kletnieks
Date: Mon Feb 16 2004 - 10:20:19 EST


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: pgp00000.pgp
Description: PGP signature