]> git.eshelyaron.com Git - emacs.git/commitdiff
(string_to_non_ascii_char): Don't check the arg
authorKenichi Handa <handa@m17n.org>
Tue, 2 Jun 1998 08:10:36 +0000 (08:10 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 2 Jun 1998 08:10:36 +0000 (08:10 +0000)
EXCLUDE_TAIL_GARBAGE for an invalid composite characters.

src/charset.c

index 29da443505c4e31c788436f8dc6c7abf3a7b7ff2..1902fe8be8c84fb5a47e54243f202d30b37266cc 100644 (file)
@@ -197,9 +197,11 @@ string_to_non_ascii_char (str, len, actual_len, exclude_tail_garbage)
          int cmpchar_id = str_cmpchar_id (str, bytes);
 
          if (cmpchar_id >= 0)
-           c = MAKE_COMPOSITE_CHAR (cmpchar_id);
-         if (exclude_tail_garbage)
-           bytes = cmpchar_table[cmpchar_id]->len;
+           {
+             c = MAKE_COMPOSITE_CHAR (cmpchar_id);
+             if (exclude_tail_garbage)
+               bytes = cmpchar_table[cmpchar_id]->len;
+           }
        }
       else
        {