mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-08 20:50:52 -08:00
(string_to_non_ascii_char): Don't check the arg
EXCLUDE_TAIL_GARBAGE for an invalid composite characters.
This commit is contained in:
parent
b4854a2383
commit
5d76bc89d4
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue