Mercurial > emacs
changeset 23476:a1abe3ae2cd0
(casify_object): Use make_string instead of
make_specified_string to cope with byte-combining situation.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sat, 17 Oct 1998 01:58:01 +0000 |
parents | 6f03301d36a7 |
children | d470109824f2 |
files | src/casefiddle.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/casefiddle.c Sat Oct 17 01:58:01 1998 +0000 +++ b/src/casefiddle.c Sat Oct 17 01:58:01 1998 +0000 @@ -101,7 +101,7 @@ { /* 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 @@ 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; }