aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>1998-06-02 08:10:36 +0000
committerKenichi Handa <[email protected]>1998-06-02 08:10:36 +0000
commit5d76bc89d449783f0de33a49f45ef6e84d6ffb08 (patch)
tree0e3f074d7a87e7825fe331b8e8d279cc3dd9ff2d /src
parentb4854a23834920583c74e82f687bc443a781c6d4 (diff)
(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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/charset.c b/src/charset.c
index 29da443505..1902fe8be8 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
{