Commit edb7b4dc authored by Andreas Schwab's avatar Andreas Schwab

* src/search.c (boyer_moore): Take unibyte characters from pattern

literally.  (Bug#9458)
parent 6e20a0d4
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment