]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 e6de7a07eb5ccb19432c92c84d759807cf3e218f..c8989be51ed47293798b831dde91dcebc22b980f 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 e19183fcf526c7c8135e436dab0668ce33a7350a..1400a7daa77e7c8e1bc77b8b6cbf5840ee9f78ed 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;