From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62432 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: default-enable-multibyte-characters in pgg-gpg Date: Wed, 29 Mar 2006 15:31:23 +0200 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1143639277 21046 80.91.229.2 (29 Mar 2006 13:34:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Mar 2006 13:34:37 +0000 (UTC) Cc: ding@gnus.org, Frank =?iso-8859-1?Q?K=FCster?= Original-X-From: ding-owner+m10959@lists.math.uh.edu Wed Mar 29 15:34:35 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 1FOaoe-0006YR-5j for ding-account@gmane.org; Wed, 29 Mar 2006 15:34:28 +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 1FOaoU-0006F3-00; Wed, 29 Mar 2006 07:34:18 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FOalo-0006Ey-00 for ding@lists.math.uh.edu; Wed, 29 Mar 2006 07:31:32 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FOali-00088V-Sg for ding@lists.math.uh.edu; Wed, 29 Mar 2006 07:31:31 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FOalh-0003Q7-00 for ; Wed, 29 Mar 2006 15:31:26 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.6/8.13.6) with ESMTP id k2TDVNs3029473; Wed, 29 Mar 2006 15:31:24 +0200 (MEST) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 6DF06115C1; Wed, 29 Mar 2006 15:31:23 +0200 (CEST) Original-To: Daiki Ueno Mail-Followup-To: Daiki Ueno , ding@gnus.org, Frank =?iso-8859-1?Q?K=FCster?= X-Face: .*T0'iU(sujq_j9\J>-d4fg;N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev In-Reply-To: (Daiki Ueno's message of "Wed, 29 Mar 2006 20:59:04 +0900") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-servers-Metrics: gemini 1049; Body=3 Fuz1=3 Fuz2=3 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62432 Archived-At: On Wed, Mar 29 2006, Daiki Ueno wrote: >>>>>> Reiner Steib wrote: >> As your patch just reverts this patch, I'd guess that it will >> reintroduce the problem the other patch tried to solve. > > Ah, I understand why this was necessary at that time. > > When the patch was introduced, pgg-gpg used synchronous code and sent > a passphrase together with data on a temp buffer: [...] Yes, revision 6.17 (in Gnus CVS) had this code. > So I think setting default-enable-multibyte-characters is no longer > necessary because we switched to use asynchronous code and passphrases > are sent separately. Thank you for this explanation. I think we should clarify this in the ChangeLog as follows: --8<---------------cut here---------------start------------->8--- 2006-03-29 Daiki Ueno * pgg-gpg.el (pgg-gpg-start-process): Don't bind default-enable-multibyte-characters. This reverts the change from revision 6.17 which is no longer necessary because the passphrase is sent separately now. GnuPG messages are unreadable under multibyte locales with default-enable-multibyte-characters set to nil. --8<---------------cut here---------------end--------------->8--- For testing, I changed my pass-phrase to start with `=E4' (#x8e4, U+00E4, LATIN SMALL LETTER A DIAERESIS) which I can enter using MultiKey-a [1]. When sending a signed message I get (both, with and without default-enable-multibyte-characters): --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (error "Attempt to change byte length of a st= ring") fillarray("\x8e4[...]" 0) pgg-gpg-status-BAD_PASSPHRASE(#> "BAD_PASSPHRASE E2222= 55A3C6B854E") pgg-gpg-process-filter(#> "[GNUPG:] BAD_PASSPHRASE E22= 2255A3C6B854E\n") accept-process-output(#> 1) pgg-gpg-wait-for-status(#> ("GOOD_PASSPHRASE")) pgg-gpg-sign-region(1 256 nil nil) funcall(pgg-gpg-sign-region 1 256 nil nil) apply(funcall pgg-gpg-sign-region (1 256 nil nil)) pgg-invoke("sign-region" gpg 1 256 nil nil) pgg-sign-region(1 256) mml2015-pgg-sign((part (sign . "pgpmime") (tag-location . 1492) (contents= . "[...]"))) mml2015-sign((part (sign . "pgpmime") (tag-location . 1492) (contents . "= [...]"))) mml-generate-mime() message-encode-message-body() message-send-mail(nil) message-send-via-mail(nil) message-send(nil) message-send-and-exit(nil) call-interactively(message-send-and-exit) --8<---------------cut here---------------end--------------->8--- Bye, Reiner. [1] xmodmap -e 'keysym a =3D a A adiaeresis Adiaeresis' --=20 ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/