From 0e2501ed344f5c8e251bcdca981f5d81dd78f663 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 15 Mar 2008 14:21:08 +0000 Subject: [PATCH] (re_match_2_internal): Correct matching of eight bit characters in unibyte strings. --- src/ChangeLog | 5 +++++ src/regex.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index e6de7a07eb5..c8989be51ed 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-03-15 Andreas Schwab + + * regex.c (re_match_2_internal): Correct matching of eight bit + characters in unibyte strings. + 2008-03-15 Martin Rudalics * buffer.c (overlays_in, Foverlays_in): Include empty overlays diff --git a/src/regex.c b/src/regex.c index e19183fcf52..1400a7daa77 100644 --- a/src/regex.c +++ b/src/regex.c @@ -5590,6 +5590,8 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop) if (buf_ch < 0) buf_ch = *d; } + else + buf_ch = *d; if (buf_ch != pat_ch) { d = dfail; -- 2.39.2