From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65649 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: [Unicode-2] `read' always returns multibyte symbol Date: Wed, 14 Nov 2007 12:56:54 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-Trace: ger.gmane.org 1195012651 28694 80.91.229.12 (14 Nov 2007 03:57:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2007 03:57:31 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 14 04:57:34 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 1Is9Nc-00082F-Rj for ged-emacs-devel@m.gmane.org; Wed, 14 Nov 2007 04:57:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Is9NQ-0003qr-GE for ged-emacs-devel@m.gmane.org; Tue, 13 Nov 2007 22:57:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Is9NN-0003qA-Bx for emacs-devel@gnu.org; Tue, 13 Nov 2007 22:57:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Is9NK-0003nt-PU for emacs-devel@gnu.org; Tue, 13 Nov 2007 22:57:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Is9NK-0003nq-Jq for emacs-devel@gnu.org; Tue, 13 Nov 2007 22:57:14 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Is9NK-0005gC-7K for emacs-devel@gnu.org; Tue, 13 Nov 2007 22:57:14 -0500 Original-Received: from [66.225.201.151] (port=58144 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1Is9NC-0004hA-1S; Tue, 13 Nov 2007 21:57:07 -0600 X-Hashcash: 1:20:071114:handa@ni.aist.go.jp::ad7EoPZwzUgUXIOG:0000000000000000000000000000000000000000006fRf X-Hashcash: 1:20:071114:emacs-devel@gnu.org::n6V4eNC2g2dbb2X2:00000000000000000000000000000000000000000004lf X-Hashcash: 1:20:071114:ding@gnus.org::aV9mf35dl/VHhWiv:00007PVt X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:b/eACKf30umpUHBZGTG1/OzBh4M= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:83160 gmane.emacs.gnus.general:65649 Archived-At: >>>>> Kenichi Handa wrote: > In addition, I think it is the right thing that the above > code return t; i.e. any symbol created by reading a > multibyte buffer should have a multibyte string name. I agree with that behavior. > The bug to fix is that the following code also returns t in > emacs-unicode-2. > < --8<---------------cut here---------------start------------->8--- > < (let ((string (encode-coding-string "local.テスト" 'utf-8))) > < (with-temp-buffer > < (set-buffer-multibyte nil) > < (insert string) > < (goto-char (point-min)) > < (multibyte-string-p (symbol-name (read (current-buffer)))))) > < --8<---------------cut here---------------end--------------->8--- Sure. I'll try using a unibyte buffer to parse active data (after the bug is fixed). Regards,