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:
parent
44d3198180
commit
cf69b13e05
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue