(pgg-gpg-process-region): Use `binary-to-text-funcall' instead of
authortomo <tomo>
Mon, 25 Dec 2000 04:58:07 +0000 (04:58 +0000)
committertomo <tomo>
Mon, 25 Dec 2000 04:58:07 +0000 (04:58 +0000)
`binary-start-process'.

pgg-gpg.el

index 5b29a76..dc6c5ae 100644 (file)
@@ -25,6 +25,7 @@
 
 ;;; Code:
 
+(require 'mel) ; binary-to-text-funcall
 (eval-when-compile (require 'pgg))
 
 (defgroup pgg-gpg ()
        (progn
          (set-default-file-modes 448)
          (setq process
-               (apply #'binary-start-process "*GnuPG*" errors-buffer
+               (apply #'binary-to-text-funcall
+                      pgg-gpg-messages-coding-system
+                      #'start-process "*GnuPG*" errors-buffer
                       program args))
-         (if (fboundp 'set-process-coding-system)
-             (set-process-coding-system process
-                                        pgg-gpg-messages-coding-system))
          (set-process-sentinel process #'ignore)
          (when passphrase
            (process-send-string process (concat passphrase "\n")))