From 5d76bc89d449783f0de33a49f45ef6e84d6ffb08 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 2 Jun 1998 08:10:36 +0000 Subject: [PATCH] (string_to_non_ascii_char): Don't check the arg EXCLUDE_TAIL_GARBAGE for an invalid composite characters. --- src/charset.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/charset.c b/src/charset.c index 29da443505c..1902fe8be8c 100644 --- a/src/charset.c +++ b/src/charset.c @@ -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 { -- 2.39.2