From dbe1e55dc4064e82813f6b84ee4297d8fc45b2fc Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 2 Sep 2017 13:02:10 +0300 Subject: [PATCH] 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) --- lisp/plstore.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2