From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62437 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: PGG: byte length problem in pass-phrase (was: default-enable-multibyte-characters in pgg-gpg) Date: Wed, 29 Mar 2006 21:59:41 +0200 Message-ID: References: <87ek0lqo19.fsf@latte.josefsson.org> 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 1143664765 22130 80.91.229.2 (29 Mar 2006 20:39:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Mar 2006 20:39:25 +0000 (UTC) Cc: Daiki Ueno , ding@gnus.org Original-X-From: ding-owner+m10964@lists.math.uh.edu Wed Mar 29 22:39:19 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 1FOhRV-0003kL-L8 for ding-account@gmane.org; Wed, 29 Mar 2006 22:39:02 +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 1FOhR8-00071t-00; Wed, 29 Mar 2006 14:38:38 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FOhM4-00071m-00 for ding@lists.math.uh.edu; Wed, 29 Mar 2006 14:33:24 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FOhLt-0003Eh-O2 for ding@lists.math.uh.edu; Wed, 29 Mar 2006 14:33:24 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FOhLm-0000LM-00 for ; Wed, 29 Mar 2006 22:33:06 +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 k2TKWuYg014909; Wed, 29 Mar 2006 22:32:57 +0200 (MEST) Original-Received: from viandante.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by bridgekeeper.physik.uni-ulm.de (Postfix) with SMTP id 36D11115C2; Wed, 29 Mar 2006 22:32:54 +0200 (CEST) Original-Received: (nullmailer pid 19804 invoked by uid 170); Wed, 29 Mar 2006 19:59:41 -0000 Original-To: Simon Josefsson X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X In-Reply-To: <87ek0lqo19.fsf@latte.josefsson.org> (Simon Josefsson's message of "Wed, 29 Mar 2006 17:16:34 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-EATSERVER-Metrics: gemini 1166; Body=6 Fuz1=6 Fuz2=6 X-MIME-Autoconverted: from 8bit to quoted-printable by mail.uni-ulm.de id k2TKWuYg014909 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62437 Archived-At: 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.) --8<---------------cut here---------------start------------->8--- =46rom 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) --8<---------------cut here---------------end--------------->8--- Do you see anything odd there? Bye, Reiner. --=20 ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/