changeset 88590:ac9b0ae4c5a0

If CODE1 is nil, use the minimum code of the charset.
author Kenichi Handa <handa@m17n.org>
date Tue, 21 May 2002 05:39:08 +0000
parents f09f6d2eb15c
children b8eb49355bfe
files src/charset.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.c	Tue May 21 05:38:48 2002 +0000
+++ b/src/charset.c	Tue May 21 05:39:08 2002 +0000
@@ -1494,7 +1494,8 @@
 
   dimension = CHARSET_DIMENSION (charsetp);
   if (NILP (code1))
-    code = charsetp->code_space[(dimension - 1) * 4];
+    code = (CHARSET_ASCII_COMPATIBLE_P (charsetp)
+	    ? 0 : CHARSET_MIN_CODE (charsetp));
   else
     {
       CHECK_NATNUM (code1);