unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Rainer Gemulla" <rgemulla@uni-mannheim.de>
Cc: ueno@gnu.org, 28114-done@debbugs.gnu.org
Subject: bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage return characters
Date: Sat, 02 Sep 2017 13:03:53 +0300	[thread overview]
Message-ID: <837exh1kom.fsf@gnu.org> (raw)
In-Reply-To: <em9f4596e4-2446-43ee-be14-81d3031619cd@gemma> (rgemulla@uni-mannheim.de)

> From: "Rainer Gemulla" <rgemulla@uni-mannheim.de>
> Cc: 28114@debbugs.gnu.org
> 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.





  reply	other threads:[~2017-09-02 10:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-16 20:09 bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage return characters Rainer Gemulla
2017-08-18  9:20 ` Eli Zaretskii
2017-08-28 12:30   ` Daiki Ueno
2017-08-29 15:45     ` Eli Zaretskii
2017-08-29 15:57       ` bug#28114: Re[2]: " Rainer Gemulla
2017-09-02 10:03         ` Eli Zaretskii [this message]
2017-09-02 10:10           ` Rainer Gemulla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837exh1kom.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=28114-done@debbugs.gnu.org \
    --cc=rgemulla@uni-mannheim.de \
    --cc=ueno@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).