Re: URIs vs. half-baked URIs [glib PATCH]



Daniel Veillard <veillard redhat com> writes:

> Section 2.3) Mapping of IRIs to URIs
> 
> -----------------------------
> This mapping can be accomplished by the following steps:
> 
>    1) Represent the IRI characters as a sequence of characters from the
>       UCS.
> 
>    2) Normalize the character sequence according to Normalization Form
>       C, as defined in [IETFNorm].  (See further discussion in Section
>       3.1.)

This step is problematical ... it's easy enough to do in GLib-2.0, but
since the NFC transformation is not reversible, if a filename is not
in NFC already, this transformation will loose information that we
need to uniquely, or at least, efficiently, identify the file.

I don't think we should do this in GLib. You couldn't call open() on
the result of the filename => URI => filename transformation and
expect it to work.

Regards,
                                        Owen




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