From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63039 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: pgg-output-buffer gets created as a unibyte buffer Date: Thu, 27 Apr 2006 19:19:43 +0900 Organization: Emacsen advocacy group Message-ID: References: <9c79059a-61a9-4fa4-8376-638753320a14@well-done.deisui.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146133282 18346 80.91.229.2 (27 Apr 2006 10:21:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Apr 2006 10:21:22 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m11566@lists.math.uh.edu Thu Apr 27 12:21:20 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FZ3cS-00061d-Kf for ding-account@gmane.org; Thu, 27 Apr 2006 12:21:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FZ3cP-0000ij-00; Thu, 27 Apr 2006 05:21:05 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FZ3bK-0000iY-00 for ding@lists.math.uh.edu; Thu, 27 Apr 2006 05:19:58 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FZ3bH-0003rA-NB for ding@lists.math.uh.edu; Thu, 27 Apr 2006 05:19:57 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FZ3bG-0008E7-00 for ; Thu, 27 Apr 2006 12:19:54 +0200 Original-Received: from [205.234.185.198] (port=49258 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1FZ3dc-0004zc-HJ; Thu, 27 Apr 2006 05:22:20 -0500 Original-To: Daiki Ueno X-Hashcash: 1:20:060427:ueno@unixuser.org::UfDt1BzF/ndplcE6:000000000000000000000000000000000000000000008bQm X-Hashcash: 1:20:060427:ding@gnus.org::yaTdDp2l1inCXrvR:0000HkkG 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.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:7xp/R03vWVE/J1CtfpGQT652na8= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.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-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63039 Archived-At: >>>>> In <9c79059a-61a9-4fa4-8376-638753320a14@well-done.deisui.org> >>>>> Daiki Ueno wrote: >>>>>> In >>>>>> Katsumi Yamaoka wrote: >> Fixed in the trunk and the v5-10 branch. > ;; Buffer's multibyteness might be turned off after > ;; inserting file's contents, as the case may be. > (let ((coding-system-for-read (if pgg-text-mode > 'raw-text > 'binary))) > (insert-file-contents output-file-name)) > (when (and (fboundp 'set-buffer-multibyte) > (subrp (symbol-function 'set-buffer-multibyte)) > (not enable-multibyte-characters)) > (if (zerop (buffer-size)) > (set-buffer-multibyte t) > (insert (pgg-string-to-multibyte > (prog1 > (buffer-string) > (erase-buffer) > (set-buffer-multibyte t))))) > Oops, It was a mistake that I didn't advise you not to fix in such an > ugly way, though I predicted you would do so. Is it impossible to fix > this by changing callers of PGG i.e. ml2015.el or mml1991.el? I didn't hit on such a way. If anything, I guess there's no way to do so. > I suppose PGG is a low level library and it shall assume that > pgg-*-buffer contains unibyte data. The problem occurs in a low level either. Any alternative plan? > Regards, > -- > Daiki Ueno