[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage re
bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage return characters
Sat, 02 Sep 2017 13:03:53 +0300
> From: "Rainer Gemulla" <address@hidden>
> Cc: address@hidden
> 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"
> (store (plstore--make buffer)))
> (with-current-buffer buffer
> (condition-case nil
> (let ((coding-system-for-read 'raw-text))
> (insert-file-contents file))
> (setq buffer-file-name (file-truename file))
> (set-buffer-modified-p nil)
> (plstore--init-from-buffer store)
Thanks, pushed to the master branch, and I'm marking this bug done.
- bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage return characters,
Eli Zaretskii <=