HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44d3198
)
(compile_pattern): Check the multibyteness of cached
author
Kenichi Handa
<handa@m17n.org>
Fri, 8 Sep 2000 00:46:53 +0000
(
00:46
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Fri, 8 Sep 2000 00:46:53 +0000
(
00:46
+0000)
string and PATTERN.
src/search.c
patch
|
blob
|
blame
|
history
diff --git
a/src/search.c
b/src/search.c
index
246f9cb
..
3ba413a
100644
(file)
--- 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