# HG changeset patch # User Kenichi Handa # Date 945217226 0 # Node ID cb8fbc50812ffea6d07bdb69a21fd5629c8312dd # Parent edeeffd7d8c7a1526380f264f8b985602a1dbc3d (search_buffer): Adjusted for the change of CHAR_STRING. diff -r edeeffd7d8c7 -r cb8fbc50812f src/search.c --- a/src/search.c Wed Dec 15 00:17:54 1999 +0000 +++ b/src/search.c Wed Dec 15 00:20:26 1999 +0000 @@ -1188,7 +1188,7 @@ { while (--len >= 0) { - unsigned char workbuf[4], *str; + unsigned char str[MAX_MULTIBYTE_LENGTH]; int c, translated, inverse; int in_charlen, charlen; @@ -1208,11 +1208,11 @@ TRANSLATE (translated, trt, c); /* If translation changed the byte-length, go back to the original character. */ - charlen = CHAR_STRING (translated, workbuf, str); + charlen = CHAR_STRING (translated, str); if (in_charlen != charlen) { translated = c; - charlen = CHAR_STRING (c, workbuf, str); + charlen = CHAR_STRING (c, str); } /* If we are searching for something strange, @@ -1238,8 +1238,6 @@ /* If two different rows appear, needing translation, then we cannot use boyer_moore search. */ boyer_moore_ok = 0; - /* ??? Handa: this must do boyer_moore_ok = 0 - if c is a composite character. */ } /* Store this character into the translated pattern. */