diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-05-31 00:54:05 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-05-31 00:54:05 -0400 |
commit | b3df3729596332a39404c364798a61bfef2adcc2 (patch) | |
tree | e58793c048b3b3f6f78a44a80567fc9618ee98b0 /lisp/emacs-lisp/cl.el | |
parent | 134edc10367a8434167656e631865c85b5f10c42 (diff) | |
download | emacs-b3df3729596332a39404c364798a61bfef2adcc2.tar.gz emacs-b3df3729596332a39404c364798a61bfef2adcc2.tar.bz2 emacs-b3df3729596332a39404c364798a61bfef2adcc2.zip |
* 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.
Diffstat (limited to 'lisp/emacs-lisp/cl.el')
0 files changed, 0 insertions, 0 deletions