From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63038 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: Re: pgg-output-buffer gets created as a unibyte buffer Date: Thu, 27 Apr 2006 18:36:26 +0900 Message-ID: <9c79059a-61a9-4fa4-8376-638753320a14@well-done.deisui.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1146130812 10398 80.91.229.2 (27 Apr 2006 09:40:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Apr 2006 09:40:12 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m11565@lists.math.uh.edu Thu Apr 27 11:40:08 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 1FZ2yh-0007jp-4S for ding-account@gmane.org; Thu, 27 Apr 2006 11:40:03 +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 1FZ2ya-0000cr-00; Thu, 27 Apr 2006 04:39:56 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FZ2vL-0000cl-00 for ding@lists.math.uh.edu; Thu, 27 Apr 2006 04:36:35 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FZ2vJ-0003fT-Po for ding@lists.math.uh.edu; Thu, 27 Apr 2006 04:36:35 -0500 Original-Received: from g96069.scn-net.ne.jp ([210.231.96.69] helo=well-done.deisui.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FZ2vI-0007fN-00 for ; Thu, 27 Apr 2006 11:36:33 +0200 Original-Received: from [150.82.173.221] (helo=well-done.deisui.org) by well-done.deisui.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.61) (envelope-from ) id 1FZ2uq-0004Pr-9V; Thu, 27 Apr 2006 18:36:04 +0900 Original-To: Katsumi Yamaoka X-Attribution: DU In-Reply-To: (Katsumi Yamaoka's message of "Thu, 27 Apr 2006 16:01:08 +0900") User-Agent: T-gnus/6.17.2 (based on No Gnus v0.2) EMIKO/1.14.1 (Choanoflagellata) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 EasyPG/0.0.0 MULE XEmacs/21.4 (patch 17) (Jumbo Shrimp) (i686-pc-linux) X-Spam-Score: -1.8 (-) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63038 Archived-At: >>>>> 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 suppose PGG is a low level library and it shall assume that pgg-*-buffer contains unibyte data. Regards, -- Daiki Ueno