From: Kenichi Handa Date: Fri, 8 Sep 2000 00:46:53 +0000 (+0000) Subject: (compile_pattern): Check the multibyteness of cached X-Git-Tag: emacs-pretest-21.0.90~1709 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cf69b13e0576696e4e1f91dfaca38e9fd47ca404;p=emacs.git (compile_pattern): Check the multibyteness of cached string and PATTERN. --- diff --git a/src/search.c b/src/search.c index 246f9cbdf4d..3ba413ae8c2 100644 --- a/src/search.c +++ b/src/search.c @@ -221,6 +221,7 @@ compile_pattern (pattern, regp, translate, posix, multibyte) 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