From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62444 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: PGG: byte length problem in pass-phrase Date: Thu, 30 Mar 2006 10:59:16 +0200 Message-ID: <87hd5gpau3.fsf@latte.josefsson.org> References: <87ek0lqo19.fsf@latte.josefsson.org> 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 1143709455 21235 80.91.229.2 (30 Mar 2006 09:04:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Mar 2006 09:04:15 +0000 (UTC) Cc: Daiki Ueno , ding@gnus.org Original-X-From: ding-owner+m10971@lists.math.uh.edu Thu Mar 30 11:04:13 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 1FOt4b-0004qi-Lm for ding-account@gmane.org; Thu, 30 Mar 2006 11:04:09 +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 1FOt4R-0008Lb-00; Thu, 30 Mar 2006 03:03:59 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FOt08-0008LT-00 for ding@lists.math.uh.edu; Thu, 30 Mar 2006 02:59:32 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FOt05-0005XM-TH for ding@lists.math.uh.edu; Thu, 30 Mar 2006 02:59:32 -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 1FOt01-0000tv-00 for ; Thu, 30 Mar 2006 10:59:25 +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 k2U8xH2o025249; Thu, 30 Mar 2006 10:59:17 +0200 Original-To: Reiner Steib OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:060330:ding@gnus.org::eDLh2sjOcQiWJNx+:1IuO X-Hashcash: 1:21:060330:reiner.steib@gmx.de::WQxtLjfP5P+1aowT:8nju X-Hashcash: 1:21:060330:ueno@unixuser.org::yi5/nKUJGpfgv96v:EOSu In-Reply-To: (Reiner Steib's message of "Wed, 29 Mar 2006 21:59:41 +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 k2U8xH2o025249 X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62444 Archived-At: Reiner Steib writes: > On Wed, Mar 29 2006, Simon Josefsson wrote: > >> Reiner Steib writes: >>> For testing, I changed my pass-phrase to start with `=E4' (#x8e4, >>> U+00E4, LATIN SMALL LETTER A DIAERESIS) [...] >>> Debugger entered--Lisp error: (error "Attempt to change byte length >>> of a string") >>> fillarray("\x8e4[...]" 0) >>> pgg-gpg-status-BAD_PASSPHRASE(#> >>> "BAD_PASSPHRASE E222255A3C6B854E") >> >> 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. > > I didn't have any UTF-8 settings. (The following setting are from a > different machine, but I think I have the same locale and Emacs > settings on both.) > > From M-x report-emacs-bug RET: > > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: POSIX > value of $LC_CTYPE: de_DE@euro > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: en_US > locale-coding-system: iso-8859-15 > default-enable-multibyte-characters: t > > Minor modes in effect: > [...] > unify-8859-on-decoding-mode: t > unify-8859-on-encoding-mode: t > utf-translate-cjk-mode: t > > M-x describe-current-coding-system RET: > > Coding system for saving this buffer: > Not set locally, use the default. > Default coding system (for new files): > 1 -- iso-latin-1 (alias: iso-8859-1 latin-1) > > Coding system for keyboard input: > nil > Coding system for terminal output: > 0 -- iso-8859-15 (alias of iso-latin-9) > > Defaults for subprocess I/O: > decoding: 1 -- iso-latin-1 (alias: iso-8859-1 latin-1) > encoding: 1 -- iso-latin-1 (alias: iso-8859-1 latin-1) > > Do you see anything odd there? No, Emacs should use ISO-8859-1(5). Maybe your terminal was UTF-8? I'm assuming you typed the same password in emacs as in the terminal.