From 9571bc9c4d0dae57f34a6a64a5a82331f0de35bf Mon Sep 17 00:00:00 2001 From: ueno Date: Sun, 30 Apr 2006 05:33:52 +0000 Subject: [PATCH] * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the decrypted text. --- ChangeLog | 3 +++ pgg-epg.el | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b13d7b1..a511449 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-04-30 Daiki Ueno + * 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. diff --git a/pgg-epg.el b/pgg-epg.el index 6ca5e60..f126dbd 100644 --- a/pgg-epg.el +++ b/pgg-epg.el @@ -4,7 +4,7 @@ ;; Copyright (C) 2006 Daiki Ueno ;; Author: Daiki Ueno -;; 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 -- 1.7.10.4