• Stefan Monnier's avatar
    * lisp/emacs-lisp/package.el: Fix decoding of downloaded files · 5f9671e5
    Stefan Monnier authored
    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.
    5f9671e5
Name
Last commit
Last update
..
calc Loading commit data...
calendar Loading commit data...
cedet Loading commit data...
emacs-lisp Loading commit data...
emulation Loading commit data...
erc Loading commit data...
eshell Loading commit data...
gnus Loading commit data...
image Loading commit data...
international Loading commit data...
language Loading commit data...
leim/quail Loading commit data...
mail Loading commit data...
mh-e Loading commit data...
net Loading commit data...
nxml Loading commit data...
obsolete Loading commit data...
org Loading commit data...
play Loading commit data...
progmodes Loading commit data...
term Loading commit data...
textmodes Loading commit data...
url Loading commit data...
vc Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.10 Loading commit data...
ChangeLog.11 Loading commit data...
ChangeLog.12 Loading commit data...
ChangeLog.13 Loading commit data...
ChangeLog.14 Loading commit data...
ChangeLog.15 Loading commit data...
ChangeLog.16 Loading commit data...
ChangeLog.17 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
ChangeLog.4 Loading commit data...
ChangeLog.5 Loading commit data...
ChangeLog.6 Loading commit data...
ChangeLog.7 Loading commit data...
ChangeLog.8 Loading commit data...
ChangeLog.9 Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
abbrev.el Loading commit data...
align.el Loading commit data...
allout-widgets.el Loading commit data...
allout.el Loading commit data...
ansi-color.el Loading commit data...
apropos.el Loading commit data...
arc-mode.el Loading commit data...
array.el Loading commit data...
auth-source-pass.el Loading commit data...
auth-source.el Loading commit data...
autoarg.el Loading commit data...
autoinsert.el Loading commit data...
autorevert.el Loading commit data...
avoid.el Loading commit data...
battery.el Loading commit data...
bindings.el Loading commit data...
bookmark.el Loading commit data...
bs.el Loading commit data...
buff-menu.el Loading commit data...
button.el Loading commit data...
calculator.el Loading commit data...
case-table.el Loading commit data...
cdl.el Loading commit data...
char-fold.el Loading commit data...
chistory.el Loading commit data...
cmuscheme.el Loading commit data...
color.el Loading commit data...
comint.el Loading commit data...
completion.el Loading commit data...
composite.el Loading commit data...
cus-dep.el Loading commit data...
cus-edit.el Loading commit data...
cus-face.el Loading commit data...
cus-start.el Loading commit data...
cus-theme.el Loading commit data...
custom.el Loading commit data...
dabbrev.el Loading commit data...
delim-col.el Loading commit data...
delsel.el Loading commit data...
descr-text.el Loading commit data...
desktop.el Loading commit data...
dframe.el Loading commit data...
dired-aux.el Loading commit data...
dired-x.el Loading commit data...
dired.el Loading commit data...
dirtrack.el Loading commit data...
disp-table.el Loading commit data...
display-fill-column-indicator.el Loading commit data...
display-line-numbers.el Loading commit data...
dnd.el Loading commit data...
doc-view.el Loading commit data...
dom.el Loading commit data...
dos-fns.el Loading commit data...
dos-vars.el Loading commit data...
dos-w32.el Loading commit data...
double.el Loading commit data...
dynamic-setting.el Loading commit data...
ebuff-menu.el Loading commit data...
echistory.el Loading commit data...
ecomplete.el Loading commit data...
edmacro.el Loading commit data...
ehelp.el Loading commit data...
elec-pair.el Loading commit data...
electric.el Loading commit data...
elide-head.el Loading commit data...
emacs-lock.el Loading commit data...
env.el Loading commit data...
epa-dired.el Loading commit data...
epa-file.el Loading commit data...
epa-hook.el Loading commit data...
epa-mail.el Loading commit data...
epa.el Loading commit data...
epg-config.el Loading commit data...
epg.el Loading commit data...
expand.el Loading commit data...
ezimage.el Loading commit data...
face-remap.el Loading commit data...
facemenu.el Loading commit data...
faces.el Loading commit data...
ffap.el Loading commit data...
filecache.el Loading commit data...
fileloop.el Loading commit data...
filenotify.el Loading commit data...
files-x.el Loading commit data...
files.el Loading commit data...
filesets.el Loading commit data...
find-cmd.el Loading commit data...
find-dired.el Loading commit data...
find-file.el Loading commit data...
find-lisp.el Loading commit data...
finder.el Loading commit data...
flow-ctrl.el Loading commit data...
foldout.el Loading commit data...
follow.el Loading commit data...
font-core.el Loading commit data...
font-lock.el Loading commit data...
format-spec.el Loading commit data...
format.el Loading commit data...
forms.el Loading commit data...
frame.el Loading commit data...
frameset.el Loading commit data...
fringe.el Loading commit data...
generic-x.el Loading commit data...
help-at-pt.el Loading commit data...
help-fns.el Loading commit data...
help-macro.el Loading commit data...
help-mode.el Loading commit data...
help.el Loading commit data...
hex-util.el Loading commit data...
hexl.el Loading commit data...
hfy-cmap.el Loading commit data...
hi-lock.el Loading commit data...
hilit-chg.el Loading commit data...
hippie-exp.el Loading commit data...
hl-line.el Loading commit data...
htmlfontify.el Loading commit data...
ibuf-ext.el Loading commit data...
ibuf-macs.el Loading commit data...
ibuffer.el Loading commit data...
icomplete.el Loading commit data...
ido.el Loading commit data...
ielm.el Loading commit data...
iimage.el Loading commit data...
image-dired.el Loading commit data...
image-file.el Loading commit data...
image-mode.el Loading commit data...
image.el Loading commit data...
imenu.el Loading commit data...
indent.el Loading commit data...
info-look.el Loading commit data...
info-xref.el Loading commit data...
info.el Loading commit data...
informat.el Loading commit data...
isearch.el Loading commit data...
isearchb.el Loading commit data...
jit-lock.el Loading commit data...
jka-cmpr-hook.el Loading commit data...
jka-compr.el Loading commit data...
json.el Loading commit data...
jsonrpc.el Loading commit data...
kermit.el Loading commit data...
kmacro.el Loading commit data...
ldefs-boot.el Loading commit data...
linum.el Loading commit data...
loadhist.el Loading commit data...
loadup.el Loading commit data...
locate.el Loading commit data...
lpr.el Loading commit data...
ls-lisp.el Loading commit data...
macros.el Loading commit data...
makesum.el Loading commit data...
man.el Loading commit data...
master.el Loading commit data...
mb-depth.el Loading commit data...
md4.el Loading commit data...
menu-bar.el Loading commit data...
midnight.el Loading commit data...
minibuf-eldef.el Loading commit data...
minibuffer.el Loading commit data...
misc.el Loading commit data...
misearch.el Loading commit data...
mouse-copy.el Loading commit data...
mouse-drag.el Loading commit data...
mouse.el Loading commit data...
mpc.el Loading commit data...
msb.el Loading commit data...
mwheel.el Loading commit data...
newcomment.el Loading commit data...
notifications.el Loading commit data...
novice.el Loading commit data...
obarray.el Loading commit data...
outline.el Loading commit data...
paren.el Loading commit data...
password-cache.el Loading commit data...
pcmpl-cvs.el Loading commit data...
pcmpl-gnu.el Loading commit data...
pcmpl-linux.el Loading commit data...
pcmpl-rpm.el Loading commit data...
pcmpl-unix.el Loading commit data...
pcmpl-x.el Loading commit data...
pcomplete.el Loading commit data...
pixel-scroll.el Loading commit data...
plstore.el Loading commit data...
printing.el Loading commit data...
proced.el Loading commit data...
profiler.el Loading commit data...
ps-bdf.el Loading commit data...
ps-def.el Loading commit data...
ps-mule.el Loading commit data...
ps-print.el Loading commit data...
ps-samp.el Loading commit data...
recentf.el Loading commit data...
rect.el Loading commit data...
register.el Loading commit data...
registry.el Loading commit data...
repeat.el Loading commit data...
replace.el Loading commit data...
reposition.el Loading commit data...
reveal.el Loading commit data...
rfn-eshadow.el Loading commit data...
rot13.el Loading commit data...
rtree.el Loading commit data...
ruler-mode.el Loading commit data...
savehist.el Loading commit data...
saveplace.el Loading commit data...
sb-image.el Loading commit data...
scroll-all.el Loading commit data...
scroll-bar.el Loading commit data...
scroll-lock.el Loading commit data...
select.el Loading commit data...
server.el Loading commit data...
ses.el Loading commit data...
shadowfile.el Loading commit data...
shell.el Loading commit data...
simple.el Loading commit data...
skeleton.el Loading commit data...
sort.el Loading commit data...
soundex.el Loading commit data...
speedbar.el Loading commit data...
startup.el Loading commit data...
strokes.el Loading commit data...
subr.el Loading commit data...
svg.el Loading commit data...
t-mouse.el Loading commit data...
tabify.el Loading commit data...
talk.el Loading commit data...
tar-mode.el Loading commit data...
tempo.el Loading commit data...
term.el Loading commit data...
thingatpt.el Loading commit data...
thread.el Loading commit data...
thumbs.el Loading commit data...
time-stamp.el Loading commit data...
time.el Loading commit data...
timezone.el Loading commit data...
tmm.el Loading commit data...
tool-bar.el Loading commit data...
tooltip.el Loading commit data...
tree-widget.el Loading commit data...
tutorial.el Loading commit data...
type-break.el Loading commit data...
uniquify.el Loading commit data...
userlock.el Loading commit data...
vcursor.el Loading commit data...
version.el Loading commit data...
view.el Loading commit data...
vt-control.el Loading commit data...
vt100-led.el Loading commit data...
w32-fns.el Loading commit data...
w32-vars.el Loading commit data...
wdired.el Loading commit data...
whitespace.el Loading commit data...
wid-browse.el Loading commit data...
wid-edit.el Loading commit data...
widget.el Loading commit data...
windmove.el Loading commit data...
window.el Loading commit data...
winner.el Loading commit data...
woman.el Loading commit data...
x-dnd.el Loading commit data...
xdg.el Loading commit data...
xml.el Loading commit data...
xt-mouse.el Loading commit data...
xwidget.el Loading commit data...