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.
This commit is contained in:
Andrea Corallo 2021-01-06 15:26:38 +01:00
parent 8ad983c4ac
commit 33b8ce865f
3 changed files with 34 additions and 0 deletions

View file

@ -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