mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
* src/search.c (boyer_moore): Take unibyte characters from pattern
literally. (Bug#9458)
This commit is contained in:
parent
6e20a0d47c
commit
edb7b4dc8b
@ -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…
Reference in New Issue
Block a user