# HG changeset patch # User Kenichi Handa # Date 1264569910 -32400 # Node ID 254543adaa9bc9bd4b0d748e94e3a2be0f4b9013 # Parent 001a0729d25562fc8e1ff0081177be5cc3ea679e# Parent 1461bb8d861920be04aa7a344dae873e1e9c1345 regex.c (analyse_first): Fix setting of fastmap for unibyte pattern string. diff -r 001a0729d255 -r 254543adaa9b src/ChangeLog --- a/src/ChangeLog Tue Jan 26 20:12:26 2010 -0800 +++ b/src/ChangeLog Wed Jan 27 14:25:10 2010 +0900 @@ -1,3 +1,8 @@ +2010-01-27 Kenichi Handa + + * regex.c (analyse_first): Fix setting of fastmap for unibyte + pattern string. + 2010-01-27 David De La Harpe Golden * fileio.c (Frename_file): Call copy-directory and diff -r 001a0729d255 -r 254543adaa9b src/regex.c --- a/src/regex.c Tue Jan 26 20:12:26 2010 -0800 +++ b/src/regex.c Wed Jan 27 14:25:10 2010 +0900 @@ -4083,8 +4083,7 @@ 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;