Commit 5d76bc89 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(string_to_non_ascii_char): Don't check the arg

EXCLUDE_TAIL_GARBAGE for an invalid composite characters.
parent b4854a23
......@@ -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
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment