(write-char-range-data-to-file): Insert coding: magic cookie.
authortomo <tomo>
Sat, 8 Nov 2003 07:55:43 +0000 (07:55 +0000)
committertomo <tomo>
Sat, 8 Nov 2003 07:55:43 +0000 (07:55 +0000)
lisp/utf-2000/char-db-util.el

index e89bfa5..df81a7a 100644 (file)
 
 (defun write-char-range-data-to-file (min max file
                                          &optional script excluded-script)
-  (let ((coding-system-for-write 'utf-8))
+  (let ((coding-system-for-write 'utf-8-mcs))
     (with-temp-buffer
+      (insert ";; -*- coding: utf-8-mcs -*-\n")
       (insert-char-range-data min max script excluded-script)
       (write-region (point-min)(point-max) file))))