changeset 92979:7967dd572109

(re_match_2_internal): Correct matching of eight bit characters in unibyte strings.
author Andreas Schwab <schwab@suse.de>
date Sat, 15 Mar 2008 14:21:08 +0000
parents 1b60cdb5a22d
children ba464718dbd7
files src/ChangeLog src/regex.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Mar 15 09:22:43 2008 +0000
+++ b/src/ChangeLog	Sat Mar 15 14:21:08 2008 +0000
@@ -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
--- a/src/regex.c	Sat Mar 15 09:22:43 2008 +0000
+++ b/src/regex.c	Sat Mar 15 14:21:08 2008 +0000
@@ -5590,6 +5590,8 @@
 		    if (buf_ch < 0)
 		      buf_ch = *d;
 		  }
+		else
+		  buf_ch = *d;
 		if (buf_ch != pat_ch)
 		  {
 		    d = dfail;