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: Interactive ucs-insert fails in HEAD Date: Tue, 13 Oct 2009 14:13:44 +0900 Message-ID: References: <83hbu8ls52.fsf@gnu.org> <83d44wleqw.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255410862 22034 80.91.229.12 (13 Oct 2009 05:14:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2009 05:14:22 +0000 (UTC) Cc: wilde@sha-bang.de, eliz@gnu.org, emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 13 07:14:10 2009 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 1MxZi5-0005Aq-Fz for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2009 07:14:09 +0200 Original-Received: from localhost ([127.0.0.1]:37180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxZi4-0005DD-Jf for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2009 01:14:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxZhw-0005CR-Db for emacs-devel@gnu.org; Tue, 13 Oct 2009 01:14:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxZhq-00057n-6V for emacs-devel@gnu.org; Tue, 13 Oct 2009 01:13:58 -0400 Original-Received: from [199.232.76.173] (port=60098 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxZhp-00057M-WC for emacs-devel@gnu.org; Tue, 13 Oct 2009 01:13:54 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:47564) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxZhm-00044I-Ii; Tue, 13 Oct 2009 01:13:51 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n9D5Dj9j015565; Tue, 13 Oct 2009 14:13:45 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n9D5Dj3k010416; Tue, 13 Oct 2009 14:13:45 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n9D5Dir4007223; Tue, 13 Oct 2009 14:13:44 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MxZhg-0006mC-Jx; Tue, 13 Oct 2009 14:13:44 +0900 In-Reply-To: (message from Juanma Barranquero on Fri, 9 Oct 2009 21:47:59 +0200) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:116108 Archived-At: In article , Juanma Barranquero writes: > My patch is just a workaround so ucs-insert works again. I've already > asked Handa-san to please take a look at it. I found that the problem is caused by this name. SQUARED CJK UNIFIED IDEOGRAPH-89E3 The Lisp reader reads both "89e3" and "89E3" as 89000.0, but symbols of those names are printed differently: (format "%S %S" '\89e3 '\89E3) => "\\89e3 89E3" (1) "89E3" should be read as a symbol. OR (2) '\89E3 should be printed as \89E3. I'm not sure which is better. Anyway, I've just committed uni-name.el that contains "\89e3" (instead of "89e3"), so the current bug should be fixed now. The fix for (1) is this: --- lread.c.~1.414.~ 2009-09-25 21:43:00.000000000 +0900 +++ lread.c 2009-10-13 13:47:10.000000000 +0900 @@ -3272,7 +3272,7 @@ while (*cp >= '0' && *cp <= '9') cp++; } - if (*cp == 'e' || *cp == 'E') + if (*cp == 'e') { state |= E_CHAR; cp++; And the fix for (2) is this: --- print.c.~1.259.~ 2009-09-25 21:43:00.000000000 +0900 +++ print.c 2009-10-13 13:40:36.000000000 +0900 @@ -1753,7 +1753,7 @@ { while (p != end && ((*p >= '0' && *p <= '9') /* Needed for \2e10. */ - || *p == 'e')) + || *p == 'e' || *p == 'E')) p++; confusing = (end == p); } Stefan and Yidong, please install whichever you think better. --- Kenichi Handa handa@m17n.org