From: Kenichi Handa Date: Wed, 27 Jan 2010 05:17:35 +0000 (+0900) Subject: regex.c (analyse_first): Fix setting of fastmap for unibyte pattern string. X-Git-Url: http://git.hcoop.net/bpt/emacs.git/commitdiff_plain/86e893e3b6a6ee06c21b4d4bbb21d4cdb8fabb73 regex.c (analyse_first): Fix setting of fastmap for unibyte pattern string. --- 86e893e3b6a6ee06c21b4d4bbb21d4cdb8fabb73 diff --cc src/ChangeLog index 96dc0066fd,96dc0066fd..1b1a9c1ee7 --- a/src/ChangeLog +++ b/src/ChangeLog @@@ -1,3 -1,3 +1,8 @@@ ++2010-01-27 Kenichi Handa ++ ++ * regex.c (analyse_first): Fix setting of fastmap for unibyte ++ pattern string. ++ 2010-01-25 Jan Djärv * xfns.c (Fx_create_frame): If frame height is too big, try diff --cc src/regex.c index 0dbfa5971b,0dbfa5971b..bb921a5b51 --- a/src/regex.c +++ b/src/regex.c @@@ -4083,8 -4083,8 +4083,7 @@@ analyse_first (p, pend, fastmap, multib the corresponding multibyte character. */ int c = RE_CHAR_TO_MULTIBYTE (p[1]); -- if (! CHAR_BYTE8_P (c)) -- fastmap[CHAR_LEADING_CODE (c)] = 1; ++ fastmap[CHAR_LEADING_CODE (c)] = 1; } } break;