]> git.eshelyaron.com Git - emacs.git/commitdiff
(string_to_non_ascii_char): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Fri, 6 Nov 1998 00:44:16 +0000 (00:44 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 6 Nov 1998 00:44:16 +0000 (00:44 +0000)
src/charset.c

index 1e373ff6304f604f52f2c202a824e3ed14cd87a2..fc53e7512091fc12340603f73ddf7f1af53c8cb7 100644 (file)
@@ -217,12 +217,13 @@ string_to_non_ascii_char (str, len, actual_len, exclude_tail_garbage)
          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)