From: Stefan Monnier Date: Sun, 9 Oct 2022 03:06:03 +0000 (-0400) Subject: * lisp/url/url-file.el (url-file): Don't bind `coding-system-for-read` X-Git-Tag: emacs-29.0.90~1616^2~685 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9d47364634f96b2f2651a7f3942f8f87b920f02d;p=emacs.git * lisp/url/url-file.el (url-file): Don't bind `coding-system-for-read` Binding it causes errors when some of the enclosed code ends up loading a `.el` file, and it is unnecessary since the rest of the code (in `url-file-asynch-callback`) is already careful to use `insert-file-contents-literally`. --- diff --git a/lisp/url/url-file.el b/lisp/url/url-file.el index a72b2e67a6a..6258e999c1d 100644 --- a/lisp/url/url-file.el +++ b/lisp/url/url-file.el @@ -150,7 +150,6 @@ it up to them." (uncompressed-filename nil) (content-type nil) (content-encoding nil) - (coding-system-for-read 'binary) (filename (url-file-build-filename url))) (or filename (error "File does not exist: %s" (url-recreate-url url))) ;; Need to figure out the content-type from the real extension,