From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65653 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 20:39:05 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1195040409 5392 80.91.229.12 (14 Nov 2007 11:40:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2007 11:40:09 +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 12:40:14 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 1IsGb1-00051Q-Jk for ged-emacs-devel@m.gmane.org; Wed, 14 Nov 2007 12:39:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsGap-0004Xl-2a for ged-emacs-devel@m.gmane.org; Wed, 14 Nov 2007 06:39:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IsGak-0004WN-Mj for emacs-devel@gnu.org; Wed, 14 Nov 2007 06:39:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IsGai-0004WB-Jn for emacs-devel@gnu.org; Wed, 14 Nov 2007 06:39:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsGai-0004W8-Fl for emacs-devel@gnu.org; Wed, 14 Nov 2007 06:39:32 -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 1IsGai-0001KA-94 for emacs-devel@gnu.org; Wed, 14 Nov 2007 06:39:32 -0500 Original-Received: from [66.225.201.151] (port=58015 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1IsGaL-0006BV-BY; Wed, 14 Nov 2007 05:39:09 -0600 X-Hashcash: 1:20:071114:handa@ni.aist.go.jp::ttgWO88vwjsOFSrd:0000000000000000000000000000000000000000004kSr X-Hashcash: 1:20:071114:emacs-devel@gnu.org::dShhJIkGTqkPHlUn:0000000000000000000000000000000000000000002GH6 X-Hashcash: 1:20:071114:ding@gnus.org::Sm0DqGgisl3tBlMZ:00001d1x 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:oAM4NmUMab3/4TPDTiWpIbCus+o= 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:83184 gmane.emacs.gnus.general:65653 Archived-At: --=-=-= >>>>> Katsumi Yamaoka wrote: > I'll try using a unibyte buffer to parse active data (after the bug > is fixed). Handa-san, thank you for the fix in Unicode-2. I've also made a change in the Gnus CVS trunk so that it may use a unibyte buffer. Now it works not only with Emacs 23.0.60 but also with Emacs 22.1, 22.1.50, and 23.0.50. BTW, I found another problem with Emacs 21 (Gnus still supports Emacs 21, IIUC). So, I'll go on looking into it further. The diff between Gnus trunk and Unicode-2 is here: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment *** gnus-start.el~ Sun Nov 11 21:51:22 2007 --- gnus-start.el Wed Nov 14 11:32:28 2007 *************** *** 2106,2112 **** (if (equal method gnus-select-method) (gnus-make-hashtable (count-lines (point-min) (point-max))) ! (gnus-make-hashtable 4096))))))) ;; Delete unnecessary lines. (goto-char (point-min)) (cond --- 2106,2113 ---- (if (equal method gnus-select-method) (gnus-make-hashtable (count-lines (point-min) (point-max))) ! (gnus-make-hashtable 4096)))))) ! group max min) ;; Delete unnecessary lines. (goto-char (point-min)) (cond *************** *** 2141,2148 **** (insert prefix) (zerop (forward-line 1))))))) ;; Store the active file in a hash table. ! (goto-char (point-min)) ! (let (group max min) (while (not (eobp)) (condition-case () (progn --- 2142,2153 ---- (insert prefix) (zerop (forward-line 1))))))) ;; Store the active file in a hash table. ! ;; Use a unibyte buffer in order to make `read' read non-ASCII ! ;; group names (which have been encoded) as unibyte strings. ! (mm-with-unibyte-buffer ! (insert-buffer-substring cur) ! (setq cur (current-buffer)) ! (goto-char (point-min)) (while (not (eobp)) (condition-case () (progn --=-=-= Content-Disposition: inline Regards, --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--