Subject: Re: bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage return characters

From: Eli Zaretskii <[email-masked]>
Date: Sat, 02 Sep 2017 13:03:53 +0300

> From: "Rainer Gemulla" <[email-masked]>
> Cc: [email-masked]
> Date: Tue, 29 Aug 2017 15:57:56 +0000
> 
> Yes, seems to work. Here is what I tried:
> 
> (defun plstore-open (file)
>    "Create a plstore instance associated with FILE."
>    (let* ((filename (file-truename file))
>           (buffer (or (find-buffer-visiting filename)
>                       (generate-new-buffer (format " plstore %s" 
> filename))))
>           (store (plstore--make buffer)))
>      (with-current-buffer buffer
>        (erase-buffer)
>        (condition-case nil
>            (let ((coding-system-for-read 'raw-text))
>              (insert-file-contents file))
>          (error))
>        (setq buffer-file-name (file-truename file))
>        (set-buffer-modified-p nil)
>        (plstore--init-from-buffer store)
>        store))))

Thanks, pushed to the master branch, and I'm marking this bug done.