summaryrefslogtreecommitdiff
path: root/lisp/plstore.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-09-02 13:02:10 +0300
committerEli Zaretskii <eliz@gnu.org>2017-09-02 13:02:10 +0300
commitdbe1e55dc4064e82813f6b84ee4297d8fc45b2fc (patch)
treef558c73ec8f39551aef9afedd7332f6d7b46dccb /lisp/plstore.el
parentf529fc1570e4157c1ecbf4aa1ab5de60efdd5ca7 (diff)
downloademacs-dbe1e55dc4064e82813f6b84ee4297d8fc45b2fc.tar.gz
Fix decrypting in plstore.el on MS-Windows
* lisp/plstore.el (plstore-open): Bind coding-system-for-read to raw-text, instead of using insert-file-contents-literally. (Bug#28114)
Diffstat (limited to 'lisp/plstore.el')
-rw-r--r--lisp/plstore.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/plstore.el b/lisp/plstore.el
index b9025433b11..26c53b3e61f 100644
--- a/lisp/plstore.el
+++ b/lisp/plstore.el
@@ -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)