[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: [patch] url-hexify-string does not follow W3C spec]
From: |
Thien-Thi Nguyen |
Subject: |
Re: address@hidden: [patch] url-hexify-string does not follow W3C spec] |
Date: |
31 Jul 2006 06:13:41 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
YAMAMOTO Mitsuharu <address@hidden> writes:
> This change breaks the following case:
>
> (concat
> "file://localhost"
> (mapconcat 'url-hexify-string
> (split-string
> (encode-coding-string "/SOME/NONASCII/FILE/NAME"
> (or file-name-coding-system
> default-file-name-coding-system))
> "/")
> "/"))
>
> Maybe suppress encoding with UTF-8 for unibyte strings?
if the result of this expression is to be used as a URI, then that means
the change exposes improper use of `url-hexify-string'; according to the
RFC (as i understand it) URIs require utf-8.
if we want `url-hexify-string' to handle "URI-like" transformations
(i.e., not strictly produce URI-conformant results), we can add an
optional arg MAKE-UNIBYTE that specifies a function to do the conversion
to unibyte. in most cases, i guess that would be `string-as-unibyte',
but i don't know for sure.
so i suppose it comes down to the question: is this case supposed to
produce a valid URI? if so, we should fix the call and not the called.
thi
- address@hidden: [patch] url-hexify-string does not follow W3C spec], Richard Stallman, 2006/07/30
- Re: address@hidden: [patch] url-hexify-string does not follow W3C spec], Thien-Thi Nguyen, 2006/07/30
- Re: address@hidden: [patch] url-hexify-string does not follow W3C spec], YAMAMOTO Mitsuharu, 2006/07/30
- Re: address@hidden: [patch] url-hexify-string does not follow W3C spec],
Thien-Thi Nguyen <=
- Re: address@hidden: [patch] url-hexify-string does not follow W3C spec], Jason Rumney, 2006/07/31
- Re: address@hidden: [patch] url-hexify-string does not follow W3C spec], Stefan Monnier, 2006/07/31
- Re: address@hidden: [patch] url-hexify-string does not follow W3C spec], David Smith, 2006/07/31
- Re: address@hidden: [patch] url-hexify-string does not follow W3C spec], Thien-Thi Nguyen, 2006/07/31
- Re: address@hidden: [patch] url-hexify-string does not follow W3C spec], YAMAMOTO Mitsuharu, 2006/07/31