changeset 22333:8d612a46dac6

(string_to_non_ascii_char): Don't check the arg EXCLUDE_TAIL_GARBAGE for an invalid composite characters.
author Kenichi Handa <handa@m17n.org>
date Tue, 02 Jun 1998 08:10:36 +0000
parents 7ad747c6c5a9
children 979317421863
files src/charset.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.c	Tue Jun 02 06:56:44 1998 +0000
+++ b/src/charset.c	Tue Jun 02 08:10:36 1998 +0000
@@ -197,9 +197,11 @@
 	  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
 	{