changeset 107002:254543adaa9b

regex.c (analyse_first): Fix setting of fastmap for unibyte pattern string.
author Kenichi Handa <handa@m17n.org>
date Wed, 27 Jan 2010 14:25:10 +0900
parents 001a0729d255 (current diff) 1461bb8d8619 (diff)
children b3596844e4b5
files
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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  <handa@m17n.org>
+
+	* regex.c (analyse_first): Fix setting of fastmap for unibyte
+	pattern string.
+
 2010-01-27  David De La Harpe Golden  <david@harpegolden.net>
 
 	* fileio.c (Frename_file): Call copy-directory and
--- 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;