aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-06-02 08:10:36 +0000
committerKenichi Handa1998-06-02 08:10:36 +0000
commit5d76bc89d449783f0de33a49f45ef6e84d6ffb08 (patch)
tree0e3f074d7a87e7825fe331b8e8d279cc3dd9ff2d /src
parentb4854a23834920583c74e82f687bc443a781c6d4 (diff)
downloademacs-5d76bc89d449783f0de33a49f45ef6e84d6ffb08.tar.gz
emacs-5d76bc89d449783f0de33a49f45ef6e84d6ffb08.zip
(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 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)
197 int cmpchar_id = str_cmpchar_id (str, bytes); 197 int cmpchar_id = str_cmpchar_id (str, bytes);
198 198
199 if (cmpchar_id >= 0) 199 if (cmpchar_id >= 0)
200 c = MAKE_COMPOSITE_CHAR (cmpchar_id); 200 {
201 if (exclude_tail_garbage) 201 c = MAKE_COMPOSITE_CHAR (cmpchar_id);
202 bytes = cmpchar_table[cmpchar_id]->len; 202 if (exclude_tail_garbage)
203 bytes = cmpchar_table[cmpchar_id]->len;
204 }
203 } 205 }
204 else 206 else
205 { 207 {