]> git.eshelyaron.com Git - emacs.git/commitdiff
(viet-encode-viscii-char): Use encode-char.
authorDave Love <fx@gnu.org>
Sun, 18 Aug 2002 13:25:12 +0000 (13:25 +0000)
committerDave Love <fx@gnu.org>
Sun, 18 Aug 2002 13:25:12 +0000 (13:25 +0000)
lisp/language/viet-util.el

index 0268f6f0bb38c587c61bb19cd372fb4d2affb307..1234844b2c6b6aece05c2bc8e9edae7e9b184266 100644 (file)
@@ -38,8 +38,7 @@
 ;;;###autoload
 (defun viet-encode-viscii-char (char)
   "Return VISCII character code of CHAR if appropriate."
-  (aref (char-table-extra-slot viet-viscii-nonascii-translation-table 0)
-       char))
+  (encode-char char 'viscii))
 
 ;; VIQR is a menmonic encoding specification for Vietnamese.
 ;; It represents diacritical marks by ASCII characters as follows: