changeset 47223:2af8e323b449

(decode-char): Translate a character by utf-8-translation-table-for-decode only when utf-8-fragment-on-decoding is non-nil.
author Kenichi Handa <handa@m17n.org>
date Wed, 04 Sep 2002 08:15:40 +0000
parents 152238c09c6c
children 94e7991938ac
files lisp/international/mule.el
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/mule.el	Wed Sep 04 06:21:03 2002 +0000
+++ b/lisp/international/mule.el	Wed Sep 04 08:15:40 2002 +0000
@@ -308,7 +308,8 @@
 Return nil if such a character is not supported.
 Currently the only supported coded character set is `ucs' (ISO/IEC
 10646: Universal Multi-Octet Coded Character Set), and the result is
-translated through the char table `utf-8-translation-table-for-decode'.
+translated through the char table `utf-8-translation-table-for-decode'
+if the variable `utf-8-fragment-on-decoding' is non-nil.
 
 Optional argument RESTRICTION specifies a way to map the pair of CCS
 and CODE-POINT to a character.   Currently not supported and just ignored."
@@ -331,7 +332,9 @@
 	       (setq code-point (- code-point #xe000))
 	       (make-char 'mule-unicode-e000-ffff
 			  (+ (/ code-point 96) 32) (+ (% code-point 96) 32))))))
-      (if (and c (aref utf-8-translation-table-for-decode c))
+      (if (and c
+	       utf-8-fragment-on-decoding
+	       (aref utf-8-translation-table-for-decode c))
 	  (aref utf-8-translation-table-for-decode c)
 	c)))))
 
@@ -843,6 +846,11 @@
   In the former case, the integer value is a valid byte code.  In the
   latter case, the integers specify the range of valid byte codes.
 
+  o composition (meaningful only when TYPE is 0 or 2)
+
+  If the value is non-nil, the coding system preserves information of
+  composition.
+
 These properties are set in PLIST, a property list.  This function
 also sets properties `coding-category' and `alias-coding-systems'
 automatically.