* pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the
authorueno <ueno>
Sun, 30 Apr 2006 05:33:52 +0000 (05:33 +0000)
committerueno <ueno>
Sun, 30 Apr 2006 05:33:52 +0000 (05:33 +0000)
decrypted text.

ChangeLog
pgg-epg.el

index b13d7b1..a511449 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-04-30  Daiki Ueno  <ueno@unixuser.org>
 
+       * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the
+       decrypted text.
+
        * epg.el (epg-read-output): Don't convert line endings of the
        output file.
 
index 6ca5e60..f126dbd 100644 (file)
@@ -4,7 +4,7 @@
 ;; Copyright (C) 2006 Daiki Ueno
 
 ;; Author: Daiki Ueno <ueno@unixuser.org>
-;; Keywords: PGP, GnuPG
+;; Keywords: PGP, GnuPG, Gnus
 
 ;; This file is part of EasyPG.
 
@@ -124,7 +124,10 @@ passphrase cache or user."
       (set-buffer (get-buffer-create pgg-errors-buffer))
       (erase-buffer))
     (condition-case error
-       (setq plain (epg-decrypt-string context (buffer-substring start end))
+       (setq plain
+             (decode-coding-string
+              (epg-decrypt-string context (buffer-substring start end))
+              'raw-text)
              pgg-epg-secret-key-id-list nil)
       (error
        (while pgg-epg-secret-key-id-list