mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-14 16:50:58 +00:00
5f9671e57e
This is a different fix for bug#34909, which should also fix bug#35739. Our downloading code used to automatically decode the result according to the usual heuristics for files. This caused problems when we later needed to save the data in a file that needed to be byte-for-byte equal to the original in order to pass the signature verification, especially because we didn't keep track of which coding-system was used to decode the data. (package--unless-error): New macro extracted from package--with-response-buffer-1, so that we can specify edebug and indent specs. (package--with-response-buffer-1): Use it. More importantly, change code so it runs `body` in a unibyte buffer with undecoded data. (package--download-one-archive): Don't encode with utf-8 since the data is not decoded yet. (describe-package-1): Explicitly decode the readem.txt files here. * lisp/url/url-handlers.el (url-insert-file-contents): Use it. (url-insert): Don't decode if buffer is unibyte. * lisp/url/url-http.el (url-http--insert-file-helper): New function, extracted from url-insert-file-contents. |
||
---|---|---|
.. | ||
ChangeLog.1 | ||
url-about.el | ||
url-auth.el | ||
url-cache.el | ||
url-cid.el | ||
url-cookie.el | ||
url-dav.el | ||
url-dired.el | ||
url-domsuf.el | ||
url-expand.el | ||
url-file.el | ||
url-ftp.el | ||
url-future.el | ||
url-gw.el | ||
url-handlers.el | ||
url-history.el | ||
url-http.el | ||
url-imap.el | ||
url-irc.el | ||
url-ldap.el | ||
url-mailto.el | ||
url-methods.el | ||
url-misc.el | ||
url-news.el | ||
url-nfs.el | ||
url-ns.el | ||
url-parse.el | ||
url-privacy.el | ||
url-proxy.el | ||
url-queue.el | ||
url-tramp.el | ||
url-util.el | ||
url-vars.el | ||
url.el |