From 33b8ce865fcfd58538ae2d7c3fff04998fcd3330 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Wed, 6 Jan 2021 15:26:38 +0100 Subject: Fix bug#45603 Reported and reduced by Mauricio Collares. * lisp/emacs-lisp/comp.el (comp-final): Fix coding system for the tmp file used to pass data the child processes. * test/src/comp-tests.el (45603-1): New testcase * test/src/comp-test-45603.el : New File. --- lisp/emacs-lisp/comp.el | 1 + 1 file changed, 1 insertion(+) (limited to 'lisp/emacs-lisp') diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 3247b19c5e2..88b6a4690df 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -3550,6 +3550,7 @@ Prepare every function for final compilation and drive the C back-end." (file-name-base output) "-") nil ".el"))) (with-temp-file temp-file + (insert ";; -*-coding: nil; -*-\n") (insert (prin1-to-string expr))) (with-temp-buffer (unwind-protect -- cgit v1.2.3