From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62433 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: default-enable-multibyte-characters in pgg-gpg Date: Wed, 29 Mar 2006 17:16:34 +0200 Message-ID: <87ek0lqo19.fsf@latte.josefsson.org> References: 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 1143645585 13170 80.91.229.2 (29 Mar 2006 15:19:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Mar 2006 15:19:45 +0000 (UTC) Cc: ding@gnus.org, Frank =?iso-8859-1?Q?K=FCster?= Original-X-From: ding-owner+m10960@lists.math.uh.edu Wed Mar 29 17:19:43 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 1FOcSS-0004F7-Nr for ding-account@gmane.org; Wed, 29 Mar 2006 17:19:41 +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 1FOcSO-0006Po-00; Wed, 29 Mar 2006 09:19:36 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FOcPc-0006Pj-00 for ding@lists.math.uh.edu; Wed, 29 Mar 2006 09:16:44 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FOcPa-0000Fi-2d for ding@lists.math.uh.edu; Wed, 29 Mar 2006 09:16:44 -0600 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FOcPZ-0004k1-00 for ; Wed, 29 Mar 2006 17:16:41 +0200 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k2TFGZYY023835; Wed, 29 Mar 2006 17:16:35 +0200 Original-To: Daiki Ueno OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:060329:ueno@unixuser.org::yGGXTQ2Rkyv9CtuD:57we X-Hashcash: 1:21:060329:ding@gnus.org::TEgikvznzx6zjPab:5Irj X-Hashcash: 1:21:060329:frank@kuesterei.ch::xFlIx1Bj+Ow+Fgbs:6ceX In-Reply-To: (Reiner Steib's message of "Wed, 29 Mar 2006 15:31:23 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on yxa-iv X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on yxa.extundo.com X-Virus-Status: Clean X-MIME-Autoconverted: from 8bit to quoted-printable by yxa.extundo.com id k2TFGZYY023835 X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62433 Archived-At: Reiner Steib writes: > Thank you for this explanation. I think we should clarify this in > the ChangeLog as follows: Done. > 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): > > Debugger entered--Lisp error: (error "Attempt to change byte length of a = string") > fillarray("\x8e4[...]" 0) > pgg-gpg-status-BAD_PASSPHRASE(#> "BAD_PASSPHRASE E22= 2255A3C6B854E") After fixing that minor issue, we would probably also have to make it possible to configure which character set is used for the password encoding. Perhaps your terminal was using ISO-8859-1 and emacs used UTF-8, then gpg likely won't accept the password. Alternatively, gpg should convert the password received from the terminal-encoded charset to the charset used when setting the password, or always convert to UTF-8.