changeset 93033:408f1bfeb7e8

(re_match_2_internal): Properly match raw 8-bit bytes against a charset.
author Andreas Schwab <schwab@suse.de>
date Mon, 17 Mar 2008 14:52:34 +0000
parents fde89c413096
children a155e008f7c7
files src/ChangeLog src/regex.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Mar 17 14:32:31 2008 +0000
+++ b/src/ChangeLog	Mon Mar 17 14:52:34 2008 +0000
@@ -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$(Q)Z(Brv  <jan.h.d@swipnet.se>
--- a/src/regex.c	Mon Mar 17 14:32:31 2008 +0000
+++ b/src/regex.c	Mon Mar 17 14:52:34 2008 +0000
@@ -5689,6 +5689,8 @@
 			c = c1;
 		      }
 		  }
+		else
+		  unibyte_char = true;
 	      }
 
 	    if (unibyte_char && c < (1 << BYTEWIDTH))