1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 15:00:45 -08:00

(compile_pattern): Check the multibyteness of cached

string and PATTERN.
This commit is contained in:
Kenichi Handa 2000-09-08 00:46:53 +00:00
parent 44d3198180
commit cf69b13e05

View file

@ -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