From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: [davidsmith@acm.org: [patch] url-hexify-string does not follow W3C spec] Date: Mon, 31 Jul 2006 09:59:12 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1154307582 11566 80.91.229.2 (31 Jul 2006 00:59:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jul 2006 00:59:42 +0000 (UTC) Cc: davidsmith@acm.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 31 02:59:38 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G7M86-00067t-PP for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2006 02:59:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7M86-0006a2-Dm for ged-emacs-devel@m.gmane.org; Sun, 30 Jul 2006 20:59:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7M7w-0006ZF-9d for emacs-devel@gnu.org; Sun, 30 Jul 2006 20:59:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7M7u-0006Wy-Jz for emacs-devel@gnu.org; Sun, 30 Jul 2006 20:59:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7M7u-0006Wr-HU for emacs-devel@gnu.org; Sun, 30 Jul 2006 20:59:22 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7MAP-0005qP-Ux; Sun, 30 Jul 2006 21:01:58 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 65FBF2C87; Mon, 31 Jul 2006 09:59:12 +0900 (JST) Original-To: Thien-Thi Nguyen In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57826 Archived-At: >>>>> On 30 Jul 2006 16:24:07 -0400, Thien-Thi Nguyen said: >> the string must be converted to hexadecimal UTF-8 and every >> hexadecimal byte must be prefixed with a % character. > thanks for pointing this out. i have rewritten `url-hexify-string'. 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? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp