From a68ad5e40bfc7bd7a553e4b64e47f6962b23734d Mon Sep 17 00:00:00 2001 From: ueno Date: Tue, 30 May 2006 09:41:14 +0000 Subject: [PATCH] * epa-file.el (epa-file-insert-file-contents): Decode the decrypted text with coding-system-for-read. --- ChangeLog | 5 +++++ epa-file.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a27efd0..99e6fd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-30 Daiki Ueno + + * epa-file.el (epa-file-insert-file-contents): + Decode the decrypted text with coding-system-for-read. + 2006-05-29 Daiki Ueno * EasyPG: Version 0.0.2 released. diff --git a/epa-file.el b/epa-file.el index b2466d9..e991ab4 100644 --- a/epa-file.el +++ b/epa-file.el @@ -92,7 +92,7 @@ (condition-case error (setq string (decode-coding-string (epg-decrypt-file context file nil) - 'undecided)) + (or coding-system-for-read 'undecided))) (error (if (setq entry (assoc file epa-file-passphrase-alist)) (setcdr entry nil)) -- 1.7.10.4