lkml.org 
[lkml]   [2004]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: JFS default behavior (was: UTF-8 in file systems? xfs/extfs/etc.)
    From
    Date
    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)?

    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2005-03-22 14:00    [W:0.024 / U:60.692 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site