# HG changeset patch # User Kenichi Handa # Date 908589481 0 # Node ID a1abe3ae2cd057f51bfd1f22afe20b98404e840f # Parent 6f03301d36a7abe9feeeb237cefa945b4773bd5d (casify_object): Use make_string instead of make_specified_string to cope with byte-combining situation. diff -r 6f03301d36a7 -r a1abe3ae2cd0 src/casefiddle.c --- 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; }