aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2003-05-30 06:05:58 +0000
committerKenichi Handa2003-05-30 06:05:58 +0000
commit09d1b24e07787b770002ea01b034bc4c4cf62699 (patch)
tree2a38c45f035314a727110f5f6dee40f1f8f7c1de
parent988f7a0c5dcb691e1dd2694de8328d4f22d50c2a (diff)
downloademacs-09d1b24e07787b770002ea01b034bc4c4cf62699.tar.gz
emacs-09d1b24e07787b770002ea01b034bc4c4cf62699.zip
(compile_pattern): Check the member target_multibyte,
not the member multibyte of buf.
-rw-r--r--src/search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index 2980712213f..507ad5c8992 100644
--- a/src/search.c
+++ b/src/search.c
@@ -105,7 +105,7 @@ matcher_overflow ()
105 POSIX is nonzero if we want full backtracking (POSIX style) 105 POSIX is nonzero if we want full backtracking (POSIX style)
106 for this pattern. 0 means backtrack only enough to get a valid match. 106 for this pattern. 0 means backtrack only enough to get a valid match.
107 MULTIBYTE is nonzero if we want to handle multibyte characters in 107 MULTIBYTE is nonzero if we want to handle multibyte characters in
108 PATTERN. 0 means all multibyte characters are recognized just as 108 the target. 0 means all multibyte characters are recognized just as
109 sequences of binary data. */ 109 sequences of binary data. */
110 110
111static void 111static void
@@ -191,7 +191,7 @@ compile_pattern (pattern, regp, translate, posix, multibyte)
191 && !NILP (Fstring_equal (cp->regexp, pattern)) 191 && !NILP (Fstring_equal (cp->regexp, pattern))
192 && EQ (cp->buf.translate, (! NILP (translate) ? translate : make_number (0))) 192 && EQ (cp->buf.translate, (! NILP (translate) ? translate : make_number (0)))
193 && cp->posix == posix 193 && cp->posix == posix
194 && cp->buf.multibyte == multibyte) 194 && cp->buf.target_multibyte == multibyte)
195 break; 195 break;
196 196
197 /* If we're at the end of the cache, compile into the nil cell 197 /* If we're at the end of the cache, compile into the nil cell