(byte-compile-insert-header): Use utf-8 as coding-system if `utf-2000'
authortomo <tomo>
Thu, 17 Jun 1999 04:59:51 +0000 (04:59 +0000)
committertomo <tomo>
Thu, 17 Jun 1999 04:59:51 +0000 (04:59 +0000)
is provided.

lisp/bytecomp.el

index 1ce8d27..b63d8e1 100644 (file)
@@ -1759,8 +1759,14 @@ With argument, insert value in current buffer after the form."
                                      (char-to-string 255)))
          (eq (point) (point-max)))
        (setq buffer-file-coding-system 'raw-text)
-      (insert "(require 'mule)\n;;;###coding system: escape-quoted\n")
-      (setq buffer-file-coding-system 'escape-quoted)
+      (cond ((featurep 'utf-2000)
+            (insert "(require 'mule)\n;;;###coding system: utf-8\n")
+            (setq buffer-file-coding-system 'utf-8)
+            )
+           (t
+            (insert "(require 'mule)\n;;;###coding system: escape-quoted\n")
+            (setq buffer-file-coding-system 'escape-quoted)
+            ))
       ;; #### Lazy loading not yet implemented for MULE files
       ;; mrb - Fix this someday.
       (save-excursion