Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* 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., `^', `$'.
  • Loading branch information
Ulrich Drepper committed Dec 12, 2007
1 parent f63e506 commit 7775166
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions 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
Expand Down
4 changes: 2 additions & 2 deletions 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.

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion posix/regcomp.c
Expand Up @@ -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:
Expand Down

0 comments on commit 7775166

Please sign in to comment.