changeset 23649:9e74943ac418

(string_to_non_ascii_char): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Fri, 06 Nov 1998 00:44:16 +0000
parents 06e645781762
children 3cc42e65f25b
files src/charset.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.c	Fri Nov 06 00:44:16 1998 +0000
+++ b/src/charset.c	Fri Nov 06 00:44:16 1998 +0000
@@ -217,12 +217,13 @@
 	  int char_bytes = BYTES_BY_CHAR_HEAD (c);
 
 	  str++;
-	  if (c >= LEADING_CODE_PRIVATE_11)
+	  if (c >= LEADING_CODE_PRIVATE_11 && c <= LEADING_CODE_PRIVATE_22)
 	    charset = *str++;
-	  if (CHARSET_DEFINED_P (charset) && char_bytes <= bytes)
+	  if (char_bytes <= bytes)
 	    {
 	      c1 = *str++ & 0x7f;
-	      if (CHARSET_DIMENSION (charset) == 2)
+	      if (CHARSET_DEFINED_P (charset)
+		  && CHARSET_DIMENSION (charset) == 2)
 		c2 = *str & 0x7F;
 	      c = MAKE_NON_ASCII_CHAR (charset, c1, c2);
 	      if (exclude_tail_garbage)