From: ueno Date: Sun, 30 Apr 2006 05:33:52 +0000 (+0000) Subject: * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the X-Git-Tag: epg-0_0_2~70 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9571bc9c4d0dae57f34a6a64a5a82331f0de35bf;p=elisp%2Fepg.git * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the decrypted text. --- 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