summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2004-12-26 15:58:58 +0000
committerPaolo Bonzini <bonzini@gnu.org>2008-01-09 16:11:40 +0100
commit5135bf48145a3def165d6e558ca715b5235eb3a9 (patch)
treea40cd7194ce8f687222e53de1150181fc3090dc1 /NEWS
parent84342a5b9378a57346424f95ec43db5c5f039fda (diff)
downloadsed-5135bf48145a3def165d6e558ca715b5235eb3a9.tar.gz
do not use leftmost-longest matching for addresses.
2004-12-26 Paolo Bonzini <bonzini@gnu.org> Do not use leftmost-longest matching for addresses. * NEWS: Add a note about this. * testsuite/recall2.good, testsuite/recall2.inp, testsuite/recall2.sed: New test. * testsuite/Makefile.am, testsuite/Makefile.tests: Add the recall2 test. * sed/sed.h (struct regex): New. (struct addr, struct subst, compile_regex, match_regex, release_regex): Use it instead of regex_t. * sed/compile.c (compile_program): Update for new meaning of the third parameter of compile_regex. * sed/execute.c (do_subst): Pass less conservative value to the regsize parameter of match_regex. * sed/regexp.c (compile_regex_1): New, extracted out of compile_regex. The third parameter, needed_sub, now includes \0 (so 10 means that \0 .. \9 are needed). Pass RE_NO_SUB if needed_sub is zero. (compile_regex): Accept a struct regex instead of a regex_t. Save the regular expression's text. (match_regex): Accept a struct regex instead of a regex_t. Recompile the pattern if it was compiled with RE_NO_SUB. (release_regex): Accept a struct regex instead of a regex_t. * doc/Makefile.am: Generate sed.texi correctly when building outside srcdir. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-33
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS8
1 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index a4d271a..07f9445 100644
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,13 @@
Sed 4.1.3
+* regex addresses do not use leftmost-longest matching. In other words,
+ /.\+/ only looks for a single character, and does not try to find as
+ many of them as possible like it used to do.
+
* added a note to BUGS and the manual about changed interpretation
- of `s|abc\|def||'.
+ of `s|abc\|def||', and about localization issues.
+
+* fixed --disable-nls build problems on Solaris.
* fixed `make check' in non-English locales.