From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Lisp reader bug Date: Fri, 4 Apr 2003 20:24:28 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304041124.UAA08985@etlken.m17n.org> 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: main.gmane.org 1049458640 13768 80.91.224.249 (4 Apr 2003 12:17:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2003 12:17:20 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 04 14:17:19 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 191Q8E-0003Zv-00 for ; Fri, 04 Apr 2003 14:17:18 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 191QAH-0000GM-00 for ; Fri, 04 Apr 2003 14:19:25 +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 191Pg0-0000ht-00 for emacs-devel@quimby.gnus.org; Fri, 04 Apr 2003 06:48:08 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 191PQm-0006nJ-00 for emacs-devel@gnu.org; Fri, 04 Apr 2003 06:32:24 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 191PNv-0006Nr-00 for emacs-devel@gnu.org; Fri, 04 Apr 2003 06:29:29 -0500 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 191PJC-0005Vz-00 for emacs-devel@gnu.org; Fri, 04 Apr 2003 06:24:34 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h34BOTo14988 for ; Fri, 4 Apr 2003 20:24:29 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6/3.7W-20010823150639) with ESMTP id h34BOSA29903 for ; Fri, 4 Apr 2003 20:24:28 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id UAA08985; Fri, 4 Apr 2003 20:24:28 +0900 (JST) Original-To: emacs-devel@gnu.org User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) 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:12891 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12891 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? --- Ken'ichi HANDA handa@m17n.org