]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/url/url-file.el (url-file): Don't bind `coding-system-for-read`
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 9 Oct 2022 03:06:03 +0000 (23:06 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 9 Oct 2022 03:06:45 +0000 (23:06 -0400)
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`.

lisp/url/url-file.el

index a72b2e67a6ac015cde8be5d72b7f7cb1b0d817f6..6258e999c1d3e8c6183a7fbd2c78510cb2f0a401 100644 (file)
@@ -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,