(mime-edit-encrypt-pgp-mime): Encode header before encrypting.
[elisp/semi.git] / pgg-gpg.el
index 8384eeb..3414ffc 100644 (file)
     (with-current-buffer (get-buffer-create output-buffer)
       (buffer-disable-undo)
       (erase-buffer))
-    (setq process
-         (apply #'start-process-shell-command "*GnuPG*" output-buffer
-                program args))
+    (as-binary-process
+     (setq process
+          (apply #'start-process-shell-command "*GnuPG*" output-buffer
+                 program args)))
     (set-process-sentinel process 'ignore)
     (when passphrase
       (process-send-string process (concat passphrase "\n")))
   (let ((args '("--batch" "--verify")))
     (when (stringp signature)
       (setq args (append args (list signature))))
-    (pgg-as-lbt start end 'CRLF
-      (pgg-gpg-process-region start end nil pgg-gpg-program args)
-      )
+    (pgg-gpg-process-region start end nil pgg-gpg-program args)
     (save-excursion
       (set-buffer pgg-errors-buffer)
       (goto-char (point-min))