From 9d47364634f96b2f2651a7f3942f8f87b920f02d Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sat, 8 Oct 2022 23:06:03 -0400 Subject: [PATCH] * 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`. --- lisp/url/url-file.el | 1 - 1 file changed, 1 deletion(-) 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, -- 2.39.5