Re: SEMI: pgg-gpg: garbled non-ascii message

Yoichi NAKAYAMA <[email protected]>
Newsgroups gmane.mail.emacs.mime.japanese
Organization Geiin.org
Message-ID <87he03534m.wl%[email protected]>
gpg 
emacs 

;; ()
;; 
-- 
Yoichi NAKAYAMA

At Tue, 26 Aug 2003 22:17:48 +0900, Tatsuya Kinoshita wrote:
> Yoichi's diary (http://yoichi.geiin.org/d/?date=20030824#p02)
> pgg-verify-regionGnuPG
> 
> 
> non-ASCIIpgg-verify-region
> 
> ([emacs-mime-ja:01440])
> 
> -- 
> 
> 
> 2003-08-26  Tatsuya Kinoshita  <[email protected]>
> 
> 	* pgg-gpg.el (pgg-gpg-process-region): Set environment variables
> 	LANGUAGE, LC_ALL, and LANG to "C" to prevent non-ascii problem.
> 
> 2003-08-13  Tatsuya Kinoshita  <[email protected]>
> 
> 	* pgg-gpg.el (pgg-gpg-process-region): Specify "--charset iso-8859-1"
> 	to GnuPG. (suggested by "Yoshinori K. Okuji" <[email protected]> in
> 	http://bugs.debian.org/150834)
> 	(pgg-scheme-lookup-key): Ditto.
> 
> --- semi.orig/pgg-gpg.el
> +++ semi/pgg-gpg.el
> @@ -68,11 +68,16 @@
>  	    ,@(if passphrase '("--passphrase-fd" "0"))
>  	    "--yes" ; overwrite
>  	    "--output" ,output-file-name
> +	    "--charset" "iso-8859-1"
>  	    ,@pgg-gpg-extra-args ,@args))
>  	 (output-buffer pgg-output-buffer)
>  	 (errors-buffer pgg-errors-buffer)
>  	 (process-connection-type nil)
> +	 (process-environment (copy-sequence process-environment))
>  	 process status exit-status)
> +    (setenv "LANGUAGE" "C")
> +    (setenv "LC_ALL" "C")
> +    (setenv "LANG" "C")
>      (with-current-buffer (get-buffer-create errors-buffer)
>        (buffer-disable-undo)
>        (erase-buffer))
> @@ -125,6 +130,7 @@
>  (luna-define-method pgg-scheme-lookup-key ((scheme pgg-scheme-gpg)
>  					   string &optional type)
>    (let ((args (list "--with-colons" "--no-greeting" "--batch"
> +		    "--charset" "iso-8859-1"
>  		    (if type "--list-secret-keys" "--list-keys")
>  		    string)))
>      (with-temp-buffer
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.