]> git.eshelyaron.com Git - emacs.git/commitdiff
(re_match_2_internal): Properly match raw 8-bit bytes
authorAndreas Schwab <schwab@suse.de>
Mon, 17 Mar 2008 14:52:34 +0000 (14:52 +0000)
committerAndreas Schwab <schwab@suse.de>
Mon, 17 Mar 2008 14:52:34 +0000 (14:52 +0000)
against a charset.

src/ChangeLog
src/regex.c

index a5880e781a7326a929b839298072bb4407ab9e1c..8d3397c7834b9bda0f2f0112c4c96a1b976e0821 100644 (file)
@@ -1,5 +1,8 @@
 2008-03-17  Andreas Schwab  <schwab@suse.de>
 
+       * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
+       against a charset.
+
        * lisp.h (Fbuffer_list): Declare.
 
 2008-03-17  Jan Dj\e$(Q)Z\e(Brv  <jan.h.d@swipnet.se>
index 9f2a42b487074d23dc0b7887341cf18e8d26182f..eca78f2ab94309ec20df550e3b3c98168e49bf4e 100644 (file)
@@ -5689,6 +5689,8 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
                        c = c1;
                      }
                  }
+               else
+                 unibyte_char = true;
              }
 
            if (unibyte_char && c < (1 << BYTEWIDTH))