Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
edb7b4dc
Commit
edb7b4dc
authored
Sep 07, 2011
by
Andreas Schwab
Browse files
* src/search.c (boyer_moore): Take unibyte characters from pattern
literally. (Bug#9458)
parent
6e20a0d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/search.c
src/search.c
+2
-2
No files found.
src/ChangeLog
View file @
edb7b4dc
2011-09-07 Andreas Schwab <schwab@linux-m68k.org>
* search.c (boyer_moore): Take unibyte characters from pattern
literally. (Bug#9458)
2011-08-30 Chong Yidong <cyd@stupidchicken.com>
* syntax.c (find_defun_start): Update all cache variables if
...
...
src/search.c
View file @
edb7b4dc
...
...
@@ -1837,7 +1837,7 @@ boyer_moore (n, base_pat, len, len_byte, trt, inverse_trt,
ch
=
-
1
;
}
if
(
ch
>=
0200
)
if
(
ch
>=
0200
&&
multibyte
)
j
=
(
ch
&
0x3F
)
|
0200
;
else
j
=
*
ptr
;
...
...
@@ -1856,7 +1856,7 @@ boyer_moore (n, base_pat, len, len_byte, trt, inverse_trt,
while
(
1
)
{
TRANSLATE
(
ch
,
inverse_trt
,
ch
);
if
(
ch
>=
0200
)
if
(
ch
>=
0200
&&
multibyte
)
j
=
(
ch
&
0x3F
)
|
0200
;
else
j
=
ch
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment