summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/crm.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2019-05-31 00:54:05 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2019-05-31 00:54:05 -0400
commitb3df3729596332a39404c364798a61bfef2adcc2 (patch)
treee58793c048b3b3f6f78a44a80567fc9618ee98b0 /lisp/emacs-lisp/crm.el
parent134edc10367a8434167656e631865c85b5f10c42 (diff)
downloademacs-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/crm.el')
0 files changed, 0 insertions, 0 deletions