]> git.eshelyaron.com Git - emacs.git/commit
* lisp/emacs-lisp/package.el: Obey buffer-file-coding-system (bug#35739)
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 31 May 2019 04:54:05 +0000 (00:54 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 31 May 2019 04:54:05 +0000 (00:54 -0400)
commitb3df3729596332a39404c364798a61bfef2adcc2
treee58793c048b3b3f6f78a44a80567fc9618ee98b0
parent134edc10367a8434167656e631865c85b5f10c42
* lisp/emacs-lisp/package.el: Obey buffer-file-coding-system (bug#35739)

`url-insert-file-contents` saves in buffer-file-coding-system
the coding-system used to decode the contents.  Preserve this
as the contents is moved from buffer to string to buffer, and use
it when saving the contents to file, so as to try and better preserve
the original byte sequence.

(package--buffer-string, package--cs): New functions.
(package--check-signature): Encode `string` if a coding-system
was specified in buffer-file-coding-system.
(package--download-one-archive, package-install-from-archive):
Obey and preserve the buffer-file-coding-system if specified.

Do not merge.
lisp/emacs-lisp/package.el