Re: normalizing filenames and strings



On Wed, 2007-03-28 at 19:52 -0600, Federico Mena Quintero wrote:

> If you have applications that "don't work" when you have Unicode
> filenames, it's a telltale sign that they are not using
> g_filename_to_utf8() and g_filename_from_utf8() correctly:
> 
> http://developer.gnome.org/doc/API/2.0/glib/glib-Character-Set-Conversion.html#file-name-encodings
> 
> I'd be interested in knowing of applications that use this API properly,
> but that still have problems with composed/decomposed names.  In that
> case, we may need to explicitly normalize inside those functions:  they
> are the central point of change between UTF-8 (GNOME's encoding for
> strings) and the file system's own encoding.
> 
> [Those functions don't normalize currently; maybe they need to... do you
> have a reproducible bug?]

NO! They should not normalize! Then you can't open a file that has an
unnormalized filename.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an otherworldly hunchbacked hairdresser looking for 'the Big One.' She's 
a provocative insomniac archaeologist with the power to see death. They fight 
crime! 




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