Commit 0e2501ed authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(re_match_2_internal): Correct matching of eight bit

characters in unibyte strings.
parent c70a68db
2008-03-15 Andreas Schwab <schwab@suse.de>
* regex.c (re_match_2_internal): Correct matching of eight bit
characters in unibyte strings.
2008-03-15 Martin Rudalics <rudalics@gmx.at> 2008-03-15 Martin Rudalics <rudalics@gmx.at>
* buffer.c (overlays_in, Foverlays_in): Include empty overlays * buffer.c (overlays_in, Foverlays_in): Include empty overlays
......
...@@ -5590,6 +5590,8 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop) ...@@ -5590,6 +5590,8 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
if (buf_ch < 0) if (buf_ch < 0)
buf_ch = *d; buf_ch = *d;
} }
else
buf_ch = *d;
if (buf_ch != pat_ch) if (buf_ch != pat_ch)
{ {
d = dfail; d = dfail;
......
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