From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63052 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: Fri, 28 Apr 2006 14:18:09 +0900 Organization: Emacsen advocacy group Message-ID: References: <9c79059a-61a9-4fa4-8376-638753320a14@well-done.deisui.org> <4aaf7080-0e3d-4a75-aff5-f9d5bcd0437f@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 1146201711 22817 80.91.229.2 (28 Apr 2006 05:21:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Apr 2006 05:21:51 +0000 (UTC) Cc: Daiki Ueno Original-X-From: ding-owner+m11579@lists.math.uh.edu Fri Apr 28 07:21:47 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 1FZLQE-0004CR-M1 for ding-account@gmane.org; Fri, 28 Apr 2006 07:21:43 +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 1FZLQ1-00023s-00; Fri, 28 Apr 2006 00:21:29 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FZLMy-00023n-00 for ding@lists.math.uh.edu; Fri, 28 Apr 2006 00:18:20 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FZLMu-0001aE-TW for ding@lists.math.uh.edu; Fri, 28 Apr 2006 00:18:20 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FZLMt-0006ph-00 for ; Fri, 28 Apr 2006 07:18:15 +0200 Original-Received: from [205.234.185.198] (port=55706 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1FZLPT-0004sc-Vo; Fri, 28 Apr 2006 00:20:56 -0500 Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org X-Hashcash: 1:20:060428:ding@gnus.org::vgaSfNCUjwUVSFPx:00001ytP X-Hashcash: 1:20:060428:ueno@unixuser.org::I3+N4uepj7MToNOC:000000000000000000000000000000000000000000001SN3 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:WdBwXdu5GhfNHa3jxHoHK9LTe14= 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:63052 Archived-At: >>>>> In Katsumi Yamaoka wrote: >>>>>> In <4aaf7080-0e3d-4a75-aff5-f9d5bcd0437f@well-done.deisui.org> >>>>>> Daiki Ueno wrote: >> Well, if you would like to add such a kludge, please add your name on >> the Maintainer: field and rename PGG to Gnus/PGG or such. Of course I'm >> not the developer nor the maintainer of that package. > I've withdrawn all the changes in pgg*.el. Instead, I'll do > something in the Gnus side tomorrow. I've fixed it, narrowing down to the problem that I encountered. In `mml2015-pgg-clear-decrypt', now the buffer is made unibyte before inserting the contents of `pgg-output-buffer', and in `mm-uu-pgp-encrypted-extract-1', the buffer is made multibyte again before replacing the contents with the one decoded by charset. Although there are still the codes which insert contents of `pgg-output-buffer' into a multibyte buffer, they don't seem to cause any problem as long as I investigated. It is because data being inserted don't contain 8bit characters. By the way, I verified my changes using the messages which I made as follows: 1. Modify the value of `mm-coding-system-priorities' so that utf-8 (or shift_jis) might be most preferred when encoding non-ASCII messages. (push 'utf-8 mm-coding-system-priorities) 2. Open a message buffer. Fill the To header with my e-mail address. Put a MML tag in the beginning of the body using M-x mml-secure-message-encrypt-pgp RET. Write any Japanese text below. And then type C-c C-c. The tag causes Message to call the `mml1991-pgg-encrypt' function to encrypt the message. I heard that Thunderbird and Outlook with the CryptoEx plugin encrypt messages in the style similar to the one that it makes (cf. in the gnus.gnus-bug newsgroup). When decrypting such messages, Gnus uses the `mml2015-pgg-clear-decrypt' function by way of the mm-uu feature (namely, `gnus-article-emulate-mime' should be set to t). Regards,