(re_match_2_internal): Correct matching of eight bit
authorAndreas Schwab <schwab@suse.de>
Sat, 15 Mar 2008 14:21:08 +0000 (14:21 +0000)
committerAndreas Schwab <schwab@suse.de>
Sat, 15 Mar 2008 14:21:08 +0000 (14:21 +0000)
characters in unibyte strings.

src/ChangeLog
src/regex.c

index e6de7a0..c8989be 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * buffer.c (overlays_in, Foverlays_in): Include empty overlays
index e19183f..1400a7d 100644 (file)
@@ -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;