From: Eli Zaretskii Date: Sat, 2 Sep 2017 10:02:10 +0000 (+0300) Subject: Fix decrypting in plstore.el on MS-Windows X-Git-Tag: emacs-26.0.90~272 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dbe1e55dc4064e82813f6b84ee4297d8fc45b2fc;p=emacs.git 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) --- 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)