From: Andreas Schwab Date: Sat, 15 Mar 2008 14:21:08 +0000 (+0000) Subject: (re_match_2_internal): Correct matching of eight bit X-Git-Tag: emacs-pretest-23.0.90~7116 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0e2501ed344f5c8e251bcdca981f5d81dd78f663;p=emacs.git (re_match_2_internal): Correct matching of eight bit characters in unibyte strings. --- 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;