]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix decrypting in plstore.el on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sat, 2 Sep 2017 10:02:10 +0000 (13:02 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 Sep 2017 10:02:10 +0000 (13:02 +0300)
* lisp/plstore.el (plstore-open): Bind coding-system-for-read to
raw-text, instead of using insert-file-contents-literally.
(Bug#28114)

lisp/plstore.el

index b9025433b11a2e30162dbe3a181a3ef4991142aa..26c53b3e61faa14b3b3d60107c6b7ba47d00ba4d 100644 (file)
@@ -212,7 +212,8 @@ symmetric encryption will be used."
     (with-current-buffer buffer
       (erase-buffer)
       (condition-case nil
-         (insert-file-contents-literally file)
+          (let ((coding-system-for-read 'raw-text))
+            (insert-file-contents file))
        (error))
       (setq buffer-file-name (file-truename file))
       (set-buffer-modified-p nil)