From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [william.xwl@gmail.com: webjump-url-encode and non-ascii characters] Date: Tue, 24 Jul 2007 13:16:07 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1185250587 19893 80.91.229.12 (24 Jul 2007 04:16:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jul 2007 04:16:27 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: William Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 24 06:16:24 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IDBot-0004z4-DC for ged-emacs-devel@m.gmane.org; Tue, 24 Jul 2007 06:16:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDBos-0007gL-KL for ged-emacs-devel@m.gmane.org; Tue, 24 Jul 2007 00:16:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDBop-0007fz-Fm for emacs-devel@gnu.org; Tue, 24 Jul 2007 00:16:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDBoo-0007fl-GP for emacs-devel@gnu.org; Tue, 24 Jul 2007 00:16:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDBoo-0007fi-AZ for emacs-devel@gnu.org; Tue, 24 Jul 2007 00:16:18 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IDBon-0002dL-2d; Tue, 24 Jul 2007 00:16:17 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id l6O4G8Jo028088; Tue, 24 Jul 2007 13:16:08 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id l6O4G81v017238; Tue, 24 Jul 2007 13:16:08 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id l6O4G7mc021327; Tue, 24 Jul 2007 13:16:07 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.67) (envelope-from ) id 1IDBod-0003MR-La; Tue, 24 Jul 2007 13:16:07 +0900 In-reply-to: (message from William on Tue, 24 Jul 2007 12:36:21 +0900) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.0 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: Solaris 8 (1) 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:75434 Archived-At: In article , W= illiam writes: > 2007/7/24, Kenichi Handa : > > > Is this patch correct? Most particularly, is it correct to use > > > buffer-file-coding-system for a URL? I have doubts about that. > > > > I doubts too. I'm not the expert of URL (or URI) encoding, > > but, as far as I remember, non-ASCII characters in URL must > > be at first encoded by UTF-8 then by %-encoding. So, for > > instance, �+" (U+00E0) must be encoded to "%C3%80". > Oh, you are right. buffer-file-coding-system should be replaced by > 'utf-8. It happens to be the same value here. One more note about your change. As mapconcat accepts a sequence (including string), string-to-list is not necessary. --- Kenichi Handa handa@m17n.org