* epa-file.el (epa-file-insert-file-contents):
authorueno <ueno>
Tue, 30 May 2006 09:41:14 +0000 (09:41 +0000)
committerueno <ueno>
Tue, 30 May 2006 09:41:14 +0000 (09:41 +0000)
Decode the decrypted text with coding-system-for-read.

ChangeLog
epa-file.el

index a27efd0..99e6fd3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-30  Daiki Ueno  <ueno@unixuser.org>
+
+       * epa-file.el (epa-file-insert-file-contents):
+       Decode the decrypted text with coding-system-for-read.
+
 2006-05-29  Daiki Ueno  <ueno@unixuser.org>
 
        * EasyPG: Version 0.0.2 released.
index b2466d9..e991ab4 100644 (file)
@@ -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))