From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Lisp reader bug Date: 04 Apr 2003 19:08:22 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5xwuiab37d.fsf@kfs2.cua.dk> References: <200304041124.UAA08985@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049469269 5516 80.91.224.249 (4 Apr 2003 15:14:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2003 15:14:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 04 17:14:26 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 191Ste-0001QT-00 for ; Fri, 04 Apr 2003 17:14:26 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 191Svk-00021i-00 for ; Fri, 04 Apr 2003 17:16:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 191StG-0007Uw-03 for emacs-devel@quimby.gnus.org; Fri, 04 Apr 2003 10:14:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 191Ssx-0007TF-00 for emacs-devel@gnu.org; Fri, 04 Apr 2003 10:13:43 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 191SpQ-0005no-00 for emacs-devel@gnu.org; Fri, 04 Apr 2003 10:10:05 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 191Sp3-0005U2-00 for emacs-devel@gnu.org; Fri, 04 Apr 2003 10:09:41 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 8258E7C012; Fri, 4 Apr 2003 17:09:40 +0200 (CEST) Original-To: Kenichi Handa In-Reply-To: <200304041124.UAA08985@etlken.m17n.org> Original-Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12898 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12898 Kenichi Handa writes: > Emacs of CVS HEAD has a bug in Lisp reader. For instance, > > (read (format "'%c" (decode-char 'ucs #x102))) > => (quote ) > > I'm not sure, but perhaps this change is the cause. > > 2003-02-18 Kim F. Storm > > * lread.c (read1): Fix last change. > "`" is not always special. Allow "?" after a character constant. > > This change adds codes something like this (total 4 places): > > || index ("\"';([#?", next_next_char) > > but, it seems that `index' doesn't work well if the second > arg is greater than 0xFF. Actually, if I change such lines > to: > > || (next_next_char < 0x100 && index ("\"';([#?", next_next_char)) > > the bug disappears. > > Kim, could you take a look at this problem? I'm not aware of that limitation in `index' (it is not documented), but if that's the case, your fix is appropriate... Please install it if not already done. -- Kim F. Storm http://www.cua.dk