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

From: "Rainer Gemulla" <[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))))

R

------ Original Message ------
From: "Eli Zaretskii" <[email-masked]>
To: "Daiki Ueno" <[email-masked]>
Cc: [email-masked]; [email-masked]
Sent: 29.8.2017 17:45:01
Subject: Re: bug#28114: 25.2; plstore decrypt erroneous on Windows due 
to carriage return characters

>>From: Daiki Ueno <[email-masked]>
>>Cc: Rainer Gemulla <[email-masked]>,  [email-masked]
>>Date: Mon, 28 Aug 2017 14:30:01 +0200
>>
>>Sorry for the late response.  I barely remember the detail, but I
>>suppose it is a leftover when I made plstore editable.  It sounds good
>>to just use insert-file-contents here.
>
>Rainer, could you try that and see if using insert-file-contents
>solves your problem?
>
>Thanks.