From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63023 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: pgg-output-buffer gets created as a unibyte buffer Date: Wed, 26 Apr 2006 21:41:25 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146055487 14797 80.91.229.2 (26 Apr 2006 12:44:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2006 12:44:47 +0000 (UTC) Cc: Daiki Ueno Original-X-From: ding-owner+m11550@lists.math.uh.edu Wed Apr 26 14:44:44 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 1FYjNa-0002tV-Im for ding-account@gmane.org; Wed, 26 Apr 2006 14:44:27 +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 1FYjNV-0006tS-00; Wed, 26 Apr 2006 07:44:22 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FYjL1-0006tN-00 for ding@lists.math.uh.edu; Wed, 26 Apr 2006 07:41:47 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FYjKy-0006Kl-V2 for ding@lists.math.uh.edu; Wed, 26 Apr 2006 07:41:46 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FYjKx-0007dm-00 for ; Wed, 26 Apr 2006 14:41:44 +0200 Original-Received: from [205.234.185.198] (port=53238 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1FYjMz-0002EK-W0; Wed, 26 Apr 2006 07:43:51 -0500 Original-To: ding@gnus.org X-Hashcash: 1:20:060426:ding@gnus.org::0U319PRFxXsyy/TZ:0000Ca/g X-Hashcash: 1:20:060426:ueno@unixuser.org::db+0FSrBcE3k/UVi:000000000000000000000000000000000000000000001Neg 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:pyIzuCL8oObLiQNevWR+Rm7li5w= 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:63023 Archived-At: Hi, I'm using latest No Gnus. I noticed decrypting messages which contain text encoded by utf-8 or by shift_jis fails on a certain situation. It occurs if the purpose to use pgg for the first time is to verify a signed message, and never recovers afterward. The cause is that `pgg-output-buffer' is created as a unibyte buffer first. It is reused and never killed. When decrypting messages, decrypted data are copied into the other multibyte buffer using: (insert-buffer-substring pgg-output-buffer) At that time, the contents will be broken if there are 8-bit data because a unibyte string is inserted into a multibyte buffer. I tested it only with GnuPG, and I have no idea to fix the problem. The workaround is to kill the " *PGG output*" buffer manually. Regards,