1
0
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:
Andreas Schwab 2011-09-07 18:48:37 +02:00
parent 6e20a0d47c
commit edb7b4dc8b
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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;