]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode-char): Load subst tables if necessary.
authorKenichi Handa <handa@m17n.org>
Sat, 12 Jun 2004 02:20:10 +0000 (02:20 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 12 Jun 2004 02:20:10 +0000 (02:20 +0000)
(encode-char): Likewise.

lisp/international/mule.el

index c4c7be3a2255be7f43f2c8b0cf05dab78eff5b52..bbe83c2baf79beca2a6d0df64f795fb82f7164ce 100644 (file)
@@ -316,8 +316,7 @@ Optional argument RESTRICTION specifies a way to map the pair of CCS
 and CODE-POINT to a character.  Currently not supported and just ignored."
   (cond
    ((eq ccs 'ucs)
-    (or (gethash code-point
-                (get 'utf-subst-table-for-decode 'translation-hash-table))
+    (or (utf-lookup-subst-table-for-decode code-point)
        (let ((c (cond
                  ((< code-point 160)
                   code-point)
@@ -361,8 +360,7 @@ code-point in CCS.  Currently not supported and just ignored."
         (charset (car split))
         trans)
     (cond ((eq ccs 'ucs)
-          (or (gethash char (get 'utf-subst-table-for-encode
-                                 'translation-hash-table))
+          (or (utf-lookup-subst-table-for-encode char)
               (let ((table (get 'utf-translation-table-for-encode
                                 'translation-table)))
                 (setq trans (aref table char))