(casify_object): Use make_string instead of

make_specified_string to cope with byte-combining situation.
This commit is contained in:
Kenichi Handa 1998-10-17 01:58:01 +00:00
parent 174a4cbee1
commit 3742fe75f8

View file

@ -101,7 +101,7 @@ casify_object (flag, obj)
{
/* The work is not yet finished because of a multibyte
character just encountered. */
int fromlen, tolen, j = i, j_byte = i;
int fromlen, tolen, j_byte = i;
char *buf
= (char *) alloca ((len - i) * MAX_LENGTH_OF_MULTI_BYTE_FORM
+ i);
@ -123,13 +123,11 @@ casify_object (flag, obj)
tolen = CHAR_STRING (c, workbuf, str);
bcopy (str, buf + j_byte, tolen);
i += fromlen;
j++;
j_byte += tolen;
if ((int) flag >= (int) CASE_CAPITALIZE)
inword = SYNTAX (c) == Sword;
}
obj = make_specified_string (buf, j, j_byte,
STRING_MULTIBYTE (obj));
obj = make_string (buf, j_byte);
}
return obj;
}