about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-12-12 18:28:58 +0000
committerUlrich Drepper <drepper@redhat.com>2007-12-12 18:28:58 +0000
commit77751669d757d1b78dfa677c1c429bd94aa2e59d (patch)
treee60ad28baa82f2dcf9c29bcda17eaeebbe15ca34
parentf63e5063410e030f856956f12b3472499c3129e2 (diff)
downloadglibc-77751669d757d1b78dfa677c1c429bd94aa2e59d.tar.gz
glibc-77751669d757d1b78dfa677c1c429bd94aa2e59d.tar.xz
glibc-77751669d757d1b78dfa677c1c429bd94aa2e59d.zip
* posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
	that would inhibit utf8-optimization of a regexp containing line-
	or buffer-anchors, e.g., `^', `$'.
-rw-r--r--ChangeLog6
-rw-r--r--NEWS4
-rw-r--r--posix/regcomp.c2
3 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 502ef29681..d0321fb14c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-01  Jim Meyering  <meyering@redhat.com>
+
+	* posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
+	that would inhibit utf8-optimization of a regexp containing line-
+	or buffer-anchors, e.g., `^', `$'.
+
 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
 
 	* time/bug-getdate1.c (do_test): Don't use century values which
diff --git a/NEWS b/NEWS
index c137977adf..1f56704135 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes.  2007-12-07
+GNU C Library NEWS -- history of user-visible changes.  2007-12-12
 Copyright (C) 1992-2006, 2007 Free Software Foundation, Inc.
 See the end for copying conditions.
 
@@ -9,7 +9,7 @@ Version 2.8
 
 * New locales: bo_CN, bo_IN.
 
-* New encoding: HP-ROMAN9.
+* New encoding: HP-ROMAN9, HP-GREEK8, HP-THAI8, HP-TURKISH8.
 
 Version 2.7
 
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 4cf168821c..1de46d72ed 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -1030,7 +1030,7 @@ optimize_utf8 (re_dfa_t *dfa)
 	  mb_chars = 1;
 	break;
       case ANCHOR:
-	switch (dfa->nodes[node].opr.idx)
+	switch (dfa->nodes[node].opr.ctx_index)
 	  {
 	  case LINE_FIRST:
 	  case LINE_LAST: