Bug#412896: Error when trying to sign an e-mail: Problem with non-ASCII chars in passphrase

2007-03-02 Thread Frank Küster
Daiki Ueno [EMAIL PROTECTED] wrote:

 In [EMAIL PROTECTED] 
  Reiner Steib [EMAIL PROTECTED] wrote:
  I have created a test gpg key and played with the passphrase, and one
  that triggered the error was MitPara§.  MitDollar$, on the other
  hand, worked fine.

 This problem has been discussed in March 2006:
 http://thread.gmane.org/gmane.emacs.gnus.general/62428/focus=62441
 (BTW, Frank I've Cc-ed you in this thread.)

Sorry, too long ago to remember it...

 Perhaps pgg-passphrase-coding-system should be set correctly?

 (setq pgg-passphrase-coding-system 'iso-8859-1)

 It once had taken the default value from locale-coding-system, but
 Richard told me locale-coding-system should be only used for display.

Thank you, that setting helped.  I'm only wondering whether sooner or
later it needs to be changed to utf-8?

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug#412896: Error when trying to sign an e-mail: Problem with non-ASCII chars in passphrase

2007-03-01 Thread Frank Küster
Hi,

I am using the Debian emacs-snapshot package, for details see below,
and experience problems when trying to gpg-sign an E-mail.  I press C-c
RET C-s which produces in the first line 'hashsign'part sign=pgpmime
  (with s/'hashsign'/#/, but writing this literally has the effect that
   Gnus wants to sign the mail, which obviously wouldn't work),
and it asks for the passphrase when sending.  I enter it and get a bad
passphrase together with an error (backtrace below)

I have created a test gpg key and played with the passphrase, and one
that triggered the error was MitPara§.  MitDollar$, on the other
hand, worked fine.

What should I do to debug this?  Is this list the right one, or should I
ask the gnus people? The details I can provide so far are

,[ C-h v emacs-version RET ]
| emacs-version is a variable defined in `version.el'.
| Its value is 22.0.94.1
| [...]
`

,[ C-h v gnus-version RET ]
| gnus-version is a variable defined in `gnus.el'.
| Its value is Gnus v5.11
| [...]
`

There's no other gnus installed:

~$ dpkg -l gnus
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version  Description
+++---
pn  gnus none   (no description available)

This is the error message:

[GNUPG:] USERID_HINT FB1B3D632252FA1A Frank KÃŒster [EMAIL PROTECTED]
[GNUPG:] NEED_PASSPHRASE FB1B3D632252FA1A FB1B3D632252FA1A 17 0
[GNUPG:] BAD_PASSPHRASE FB1B3D632252FA1A
gpg: skipped frank: bad passphrase
gpg: signing failed: bad passphrase

And this is the backtrace:

Debugger entered--Lisp error: (error Sign error)
  signal(error (Sign error))
  error(Sign error)
  mml2015-pgg-sign((part (sign . pgpmime) (tag-location . 333) (contents . 
hallo\n-- \nDr. Frank K\xf7cster\nSingle Molecule Spectroscopy, Protein 
Folding @ Inst. f. Biochemie, Univ. Z\xf7crich\nDebian Developer 
(teTeX/TeXLive)\n)))
  mml2015-sign((part (sign . pgpmime) (tag-location . 333) (contents . 
hallo\n-- \nDr. Frank K\xf7cster\nSingle Molecule Spectroscopy, Protein 
Folding @ Inst. f. Biochemie, Univ. Z\xf7crich\nDebian Developer 
(teTeX/TeXLive)\n)))
  mml-pgpmime-sign-buffer((part (sign . pgpmime) (tag-location . 333) 
(contents . hallo\n-- \nDr. Frank K\xf7cster\nSingle Molecule Spectroscopy, 
Protein Folding @ Inst. f. Biochemie, Univ. Z\xf7crich\nDebian Developer 
(teTeX/TeXLive)\n)))
  mml-generate-mime-1((part (sign . pgpmime) (tag-location . 333) (contents . 
hallo\n-- \nDr. Frank K\xf7cster\nSingle Molecule Spectroscopy, Protein 
Folding @ Inst. f. Biochemie, Univ. Z\xf7crich\nDebian Developer 
(teTeX/TeXLive)\n)))
  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)

After that, there's an empty ' *PGG output*' buffer, but no ' *PGG errors*'. 


TIA, Frank

-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug#412896: Error when trying to sign an e-mail: Problem with non-ASCII chars in passphrase

2007-03-01 Thread Reiner Steib
On Thu, Mar 01 2007, Frank Küster wrote:

 I am using the Debian emacs-snapshot package, for details see below,
 and experience problems when trying to gpg-sign an E-mail.  I press C-c
 RET C-s which produces in the first line 'hashsign'part sign=pgpmime
   (with s/'hashsign'/#/, but writing this literally has the effect that
Gnus wants to sign the mail, which obviously wouldn't work),

,[ `C-h k C-c RET q' ]
| C-c RET q runs the command mml-quote-region
|   which is an interactive compiled Lisp function in `mml'.
| It is bound to menu-bar Attachments Quote MML in region, C-c RET q.
| (mml-quote-region beg end)
| 
| Quote the MML tags in the region.
`

 and it asks for the passphrase when sending.  I enter it and get a bad
 passphrase together with an error (backtrace below)

 I have created a test gpg key and played with the passphrase, and one
 that triggered the error was MitPara§.  MitDollar$, on the other
 hand, worked fine.

 What should I do to debug this?  Is this list the right one, or should I
 ask the gnus people? 

I'm Cc-ing Daiki Ueno, the author of PGG.

This problem has been discussed in March 2006:
http://thread.gmane.org/gmane.emacs.gnus.general/62428/focus=62441
(BTW, Frank I've Cc-ed you in this thread.)

I don't know if the patch (which was not the right fix according to
Daiki) has been applied and what would be the right fix.  Should we
simply document that non-ascii characters don't work / may cause
problems?

 ,[ C-h v emacs-version RET ]
 | emacs-version is a variable defined in `version.el'.
 | Its value is 22.0.94.1
 ,[ C-h v gnus-version RET ]
 | gnus-version is a variable defined in `gnus.el'.
 | Its value is Gnus v5.11

[ See http://thread.gmane.org/gmane.emacs.pretest.bugs/17314 for the
  complete message. ]

Bye, Reiner.
-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



Bug#412896: Error when trying to sign an e-mail: Problem with non-ASCII chars in passphrase

2007-03-01 Thread Daiki Ueno
 In [EMAIL PROTECTED] 
   Reiner Steib [EMAIL PROTECTED] wrote:
  I have created a test gpg key and played with the passphrase, and one
  that triggered the error was MitPara§.  MitDollar$, on the other
  hand, worked fine.

 This problem has been discussed in March 2006:
 http://thread.gmane.org/gmane.emacs.gnus.general/62428/focus=62441
 (BTW, Frank I've Cc-ed you in this thread.)

It was later discussed on emacs-devel, and I believe it was fixed.
http://thread.gmane.org/gmane.emacs.gnus.general/63023/focus=63685

 I don't know if the patch (which was not the right fix according to
 Daiki) has been applied and what would be the right fix.  Should we
 simply document that non-ascii characters don't work / may cause
 problems?

Perhaps pgg-passphrase-coding-system should be set correctly?

(setq pgg-passphrase-coding-system 'iso-8859-1)

It once had taken the default value from locale-coding-system, but
Richard told me locale-coding-system should be only used for display.

Regards,
-- 
Daiki Ueno