Gmane
Face Favicon
From: Satyaki Das <satyakid <at> stanford.edu>
Subject: Re: Bug in pgg-gpg-process-region
Newsgroups: gmane.emacs.gnus.general
Date: 2003-02-28 18:04:34 GMT (6 years, 18 weeks, 6 hours and 13 minutes ago)
Frank Küster <frank <at> kuesterei.ch> writes:

> Satyaki Das <satyaki <at> chicory.stanford.edu> schrieb:
> 
> > I don't think the "$" char is the problem. I tried changing my
> > passphrase to contain a "$" and everything still worked. Do you
> > have non-ASCII characters in your passphrase?
> 
> Err, you're right. There is one char that is not on the american
> keyboards standing around in the lab. I couldn't imagine that this one
> could be a problem, it's been on german typewriters since the old ages.
> 
> I invented a new Passphrase now, and yes, though it's complicated, it
> works. Still I feel that in the future, more and more people will be
> using the characters they find on _their_ machine in their passphrases,
> so it may be worth thinking about that; gpg itself doesn't have a
> problem with that (at least not with iso-9985-?, may be different with
> Unicode). 

I wasn't suggesting that you change your passphrase. Recently I
had submitted a patch to pgg to use call-process-region, instead
of start-process (this gets rid of the blinking). That has had
unintended consequences as you have just found out.

The attached patch might fix this problem. I am not sure if it
does.

> However, there is one more problem. In a test mail with german Umlauts
> in the body, Gnus didn't send the signed mail, instead complained: 

I have no ideas about this one.

Satyaki

Index: pgg-gpg.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/pgg-gpg.el,v
retrieving revision 6.10
diff -u -r6.10 pgg-gpg.el
--- pgg-gpg.el	8 Feb 2003 21:20:53 -0000	6.10
+++ pgg-gpg.el	28 Feb 2003 18:16:42 -0000
@@ -67,6 +67,7 @@
 	(progn
 	  (set-default-file-modes 448)
           (let* ((coding-system-for-write 'binary)
+                 (default-enable-multibyte-characters nil)
                  (input (buffer-substring-no-properties start end)))
             (with-temp-buffer
               (when passphrase