]> git.eshelyaron.com Git - emacs.git/commitdiff
Mark async worker tmp file as utf-8-emacs-unix (bug#48029)
authorAndrea Corallo <akrl@sdf.org>
Fri, 8 Jul 2022 08:27:45 +0000 (10:27 +0200)
committerAndrea Corallo <akrl@sdf.org>
Fri, 8 Jul 2022 14:02:59 +0000 (16:02 +0200)
* lisp/emacs-lisp/comp.el (comp-final): Mark async worker tmp file
as utf-8.
* test/src/comp-tests.el (48029-1): New test.
* test/src/comp-resources/comp-test-funcs.el
(comp-test-48029-nonascii-žžž-f): New function.

lisp/emacs-lisp/comp.el
test/src/comp-resources/comp-test-funcs.el
test/src/comp-tests.el

index 73285e0f24d23955aa4400d5920a1d78242933d8..31566dd869f1b9c6cc1f1cf3018e28b9986a5dfe 100644 (file)
@@ -3693,7 +3693,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 ";; -*-coding: utf-8-emacs-unix; -*-\n")
           (mapc (lambda (e)
                   (insert (prin1-to-string e)))
                 expr))
index 0a60f4d6cc4ef5654685209ff719280b7d5be847..9092f040c8084f0597752d68ceca02b6e40af375 100644 (file)
 (defun comp-test-47868-4-f ()
   #(" " 0 1 (face font-lock-keyword-face)))
 
+(defun comp-test-48029-nonascii-žžž-f (arg)
+  (when arg t))
 
 \f
 ;;;;;;;;;;;;;;;;;;;;
index e7b534d00ec0ebe9a4f75df984c251f345a2d94a..c7e81298d26cf662c93a37d6d20e505d8593c796 100644 (file)
@@ -532,6 +532,11 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html."
   (should (eq (comp-test-47868-1-f) (comp-test-47868-3-f)))
   (should (eq (comp-test-47868-2-f) (comp-test-47868-4-f))))
 
+(comp-deftest 48029-1 ()
+  "<https://lists.gnu.org/archive/html/bug-gnu-emacs/2022-07/msg00666.html>"
+  (should (subr-native-elisp-p
+           (symbol-function 'comp-test-48029-nonascii-žžž-f))))
+
 \f
 ;;;;;;;;;;;;;;;;;;;;;
 ;; Tromey's tests. ;;