diff options
author | Kenichi Handa <handa@m17n.org> | 1998-06-02 08:10:36 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1998-06-02 08:10:36 +0000 |
commit | 758812eb2da15fb314554cc210ccc2d487b2e625 (patch) | |
tree | fb3bddd6565ae7259f32ef574c0127325b6222c2 /src | |
parent | 98139f85a9b23258df4d788af51daeb8ad141f4e (diff) | |
download | emacs-758812eb2da15fb314554cc210ccc2d487b2e625.tar.gz |
(string_to_non_ascii_char): Don't check the arg
EXCLUDE_TAIL_GARBAGE for an invalid composite characters.
Diffstat (limited to 'src')
-rw-r--r-- | src/charset.c | 8 |
1 files 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 { |