Commit cf69b13e authored by Kenichi Handa's avatar Kenichi Handa

(compile_pattern): Check the multibyteness of cached

string and PATTERN.
parent 44d31981
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment