mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-28 01:00:52 -07:00
* src/search.c (boyer_moore): Take unibyte characters from pattern
literally. (Bug#9458)
This commit is contained in:
parent
6e20a0d47c
commit
edb7b4dc8b
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue