]> 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>
Wed, 13 Jul 2022 13:19:27 +0000 (15:19 +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 7d09d2425b217ba0d43e608a7e1b287de17033f1..374b39e99902239a89b2af4504d04a978b8d4e18 100644 (file)
@@ -3697,7 +3697,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 d740a5f8107059036dd113f6194b008b0f8d6f43..4cd4cc141feb4b0cf04ec74e146522e3aed29bc5 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 96f2b42c0d713273b97f810dd26290c2c1b8053c..af40eb247dec4ad9e907514f2294e0bf8790ef60 100644 (file)
@@ -513,6 +513,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. ;;