changeset 31486:a3dc5f987e8f

(compile_pattern): Check the multibyteness of cached string and PATTERN.
author Kenichi Handa <handa@m17n.org>
date Fri, 08 Sep 2000 00:46:53 +0000
parents bf021e229ed0
children 9af879dacd99
files src/search.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Fri Sep 08 00:46:24 2000 +0000
+++ b/src/search.c	Fri Sep 08 00:46:53 2000 +0000
@@ -221,6 +221,7 @@
       if (NILP (cp->regexp))
 	goto compile_it;
       if (XSTRING (cp->regexp)->size == XSTRING (pattern)->size
+	  && STRING_MULTIBYTE (cp->regexp) == STRING_MULTIBYTE (pattern)
 	  && !NILP (Fstring_equal (cp->regexp, pattern))
 	  && EQ (cp->buf.translate, (! NILP (translate) ? translate : make_number (0)))
 	  && cp->posix == posix