diff options
| author | Kenichi Handa | 2004-06-12 02:20:10 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-06-12 02:20:10 +0000 |
| commit | 8458c8b93d0e1c5c8f7dcaa6b73511f863039acb (patch) | |
| tree | f5e5fe1b9394f7993b5db602598ffd63f2c90369 | |
| parent | 95d2d43392131c1040185be72cf956841615b313 (diff) | |
| download | emacs-8458c8b93d0e1c5c8f7dcaa6b73511f863039acb.tar.gz emacs-8458c8b93d0e1c5c8f7dcaa6b73511f863039acb.zip | |
(decode-char): Load subst tables if necessary.
(encode-char): Likewise.
| -rw-r--r-- | lisp/international/mule.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index c4c7be3a225..bbe83c2baf7 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -316,8 +316,7 @@ Optional argument RESTRICTION specifies a way to map the pair of CCS | |||
| 316 | and CODE-POINT to a character. Currently not supported and just ignored." | 316 | and CODE-POINT to a character. Currently not supported and just ignored." |
| 317 | (cond | 317 | (cond |
| 318 | ((eq ccs 'ucs) | 318 | ((eq ccs 'ucs) |
| 319 | (or (gethash code-point | 319 | (or (utf-lookup-subst-table-for-decode code-point) |
| 320 | (get 'utf-subst-table-for-decode 'translation-hash-table)) | ||
| 321 | (let ((c (cond | 320 | (let ((c (cond |
| 322 | ((< code-point 160) | 321 | ((< code-point 160) |
| 323 | code-point) | 322 | code-point) |
| @@ -361,8 +360,7 @@ code-point in CCS. Currently not supported and just ignored." | |||
| 361 | (charset (car split)) | 360 | (charset (car split)) |
| 362 | trans) | 361 | trans) |
| 363 | (cond ((eq ccs 'ucs) | 362 | (cond ((eq ccs 'ucs) |
| 364 | (or (gethash char (get 'utf-subst-table-for-encode | 363 | (or (utf-lookup-subst-table-for-encode char) |
| 365 | 'translation-hash-table)) | ||
| 366 | (let ((table (get 'utf-translation-table-for-encode | 364 | (let ((table (get 'utf-translation-table-for-encode |
| 367 | 'translation-table))) | 365 | 'translation-table))) |
| 368 | (setq trans (aref table char)) | 366 | (setq trans (aref table char)) |