(decode-builtin-char): Use `charset-name'.
authortomo <tomo>
Thu, 3 Feb 2000 10:07:31 +0000 (10:07 +0000)
committertomo <tomo>
Thu, 3 Feb 2000 10:07:31 +0000 (10:07 +0000)
(write-char-range-data-to-file): Use utf-8.

lisp/utf-2000/char-db-util.el

index d463d8f..acbc639 100644 (file)
        ))))
 
 (defun decode-builtin-char (charset code-point)
-  (if (and (not (eq charset 'ideograph-daikanwa))
-          (or (memq charset '(ascii latin-viscii-upper
-                                    latin-viscii-lower
-                                    arabic-iso8859-6
-                                    japanese-jisx0213-1
-                                    japanese-jisx0213-2))
+  (setq charset (get-charset charset))
+  (if (and (not (eq (charset-name charset) 'ideograph-daikanwa))
+          (or (memq (charset-name charset)
+                    '(ascii latin-viscii-upper
+                            latin-viscii-lower
+                            arabic-iso8859-6
+                            japanese-jisx0213-1
+                            japanese-jisx0213-2))
               (= (char-int (charset-iso-final-char charset)) 0)))
       (decode-char charset code-point)
     (let ((table (charset-mapping-table charset)))
       )))
 
 (defun write-char-range-data-to-file (min max file)
-  (with-temp-buffer
-    (insert-char-range-data min max)
-    (write-region (point-min)(point-max) file)))
+  (let ((coding-system-for-write 'utf-8))
+    (with-temp-buffer
+      (insert-char-range-data min max)
+      (write-region (point-min)(point-max) file))))
 
 (defvar what-character-original-window-configuration)