Fixed.
[elisp/epg.git] / epg.el
diff --git a/epg.el b/epg.el
index ca9b4c6..330e7c4 100644 (file)
--- a/epg.el
+++ b/epg.el
@@ -260,7 +260,8 @@ This function is for internal use only."
 
 (defun epg-read-output (context)
   (with-temp-buffer
-    (set-buffer-multibyte nil)
+    (if (fboundp 'set-buffer-multibyte)
+       (set-buffer-multibyte nil))
     (if (file-exists-p (epg-context-output-file context))
        (let ((coding-system-for-read (if (epg-context-textmode context)
                                          'raw-text
@@ -595,9 +596,7 @@ If you are unsure, use synchronous version of this function
        (if (epg-context-result-for context 'error)
            (error "Decryption failed"))
        (epg-read-output context))
-    (epg-reset context)
-    (if (file-exists-p input-file)
-       (delete-file input-file))))
+    (epg-reset context)))
 
 ;;;###autoload
 (defun epg-decrypt-string (context string)