From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: [PATCH] Unicode Lisp reader escapes. Date: Tue, 20 Jun 2006 11:37:25 +0900 Message-ID: References: <17491.34779.959316.484740@parhasard.net> <17492.29148.246942.842300@parhasard.net> <8764kkawsf.fsf@jurta.org> <87vesi6nh1.fsf@jurta.org> <878xp8g2a9.fsf@jurta.org> <17537.54719.354843.89030@parhasard.net> <17553.43278.718379.863167@parhasard.net> <17557.31514.794081.590563@parhasard.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1150771091 24665 80.91.229.2 (20 Jun 2006 02:38:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Jun 2006 02:38:11 +0000 (UTC) Cc: kehoea@parhasard.net, emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 20 04:38:08 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 1FsW7y-0005Qz-NI for ged-emacs-devel@m.gmane.org; Tue, 20 Jun 2006 04:38:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FsW7x-0006FN-4D for ged-emacs-devel@m.gmane.org; Mon, 19 Jun 2006 22:38:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FsW7l-0006Eg-4Z for emacs-devel@gnu.org; Mon, 19 Jun 2006 22:37:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FsW7i-0006EU-HN for emacs-devel@gnu.org; Mon, 19 Jun 2006 22:37:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FsW7i-0006ER-CX; Mon, 19 Jun 2006 22:37:50 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FsWI7-0001NQ-9I; Mon, 19 Jun 2006 22:48:35 -0400 Original-Received: from smtp3.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k5K2bkbM020088; Tue, 20 Jun 2006 11:37:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id k5K2bffx020757; Tue, 20 Jun 2006 11:37:41 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FsW7J-0004u4-00; Tue, 20 Jun 2006 11:37:25 +0900 Original-To: Eli Zaretskii In-reply-to: (message from Eli Zaretskii on Sun, 18 Jun 2006 22:55:01 +0300) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) 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:56018 gmane.emacs.pretest.bugs:12571 Archived-At: In article , Eli Zaretskii writes: >> From: Aidan Kehoe >> Date: Sun, 18 Jun 2006 18:11:06 +0200 >> Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org >> >> > Coding systems already replace unsupported characters with `?' (other >> > applications behave like that as well), so perhaps we should use some >> > more conventional character here. >> > Does anyone have an opinion? >> >> Perhaps, indeed. > Handa-san, could you please comment on this issue? At first, coding system (utf-8) doesn't replace unsupported characters with '?' on decoding. It preserves the original byte sequence and attaches a special text property to display it the Unicode replacement character U+FFFD. But, as we can't do that in read_escape, I propose to simply signal an error as unsupported character. I think anything else leads to unexpected behavior. --- Kenichi Handa handa@m17n.org