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-Tag: emacs-pretest-23.1.92~29 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=86e893e3b6a6ee06c21b4d4bbb21d4cdb8fabb73;p=emacs.git regex.c (analyse_first): Fix setting of fastmap for unibyte pattern string. --- 86e893e3b6a6ee06c21b4d4bbb21d4cdb8fabb73 diff --cc src/ChangeLog index 96dc0066fd9,96dc0066fd9..1b1a9c1ee73 --- 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 0dbfa5971b3,0dbfa5971b3..bb921a5b519 --- 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;