From: Kenichi Handa Date: Tue, 2 Jun 1998 08:10:36 +0000 (+0000) Subject: (string_to_non_ascii_char): Don't check the arg X-Git-Tag: emacs-20.3~744 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5d76bc89d449783f0de33a49f45ef6e84d6ffb08;p=emacs.git (string_to_non_ascii_char): Don't check the arg EXCLUDE_TAIL_GARBAGE for an invalid composite characters. --- 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 {