aboutsummaryrefslogtreecommitdiffstats
path: root/src/search.c
diff options
context:
space:
mode:
authorKenichi Handa2000-09-08 00:46:53 +0000
committerKenichi Handa2000-09-08 00:46:53 +0000
commitcf69b13e0576696e4e1f91dfaca38e9fd47ca404 (patch)
treec804bc51fba561c9a0e0f0ae83cfac5c9c2a0739 /src/search.c
parent44d31981802a0d15ff186b3eef9428264bf1d8d1 (diff)
downloademacs-cf69b13e0576696e4e1f91dfaca38e9fd47ca404.tar.gz
emacs-cf69b13e0576696e4e1f91dfaca38e9fd47ca404.zip
(compile_pattern): Check the multibyteness of cached
string and PATTERN.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c1
1 files changed, 1 insertions, 0 deletions
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)
221 if (NILP (cp->regexp)) 221 if (NILP (cp->regexp))
222 goto compile_it; 222 goto compile_it;
223 if (XSTRING (cp->regexp)->size == XSTRING (pattern)->size 223 if (XSTRING (cp->regexp)->size == XSTRING (pattern)->size
224 && STRING_MULTIBYTE (cp->regexp) == STRING_MULTIBYTE (pattern)
224 && !NILP (Fstring_equal (cp->regexp, pattern)) 225 && !NILP (Fstring_equal (cp->regexp, pattern))
225 && EQ (cp->buf.translate, (! NILP (translate) ? translate : make_number (0))) 226 && EQ (cp->buf.translate, (! NILP (translate) ? translate : make_number (0)))
226 && cp->posix == posix 227 && cp->posix == posix