16 Commits
Author SHA1 Message Date
Paolo Bonzini 8c7d077764 fix \x26 on RHS of s command
2012-04-13  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c (convert_number): Remove default_char argument,
	expect buf to point to it.  Remove maxdigits argument and compute
	it on the fly.
	(normalize_text): Unify calls to convert_number under the convert
	label.  For TEXT_REPLACEMENT add a backslash to the output if
	convert_number returns ch == '&'.
2012-04-13 10:42:53 +02:00
Yury G. Kudryashov 727f353d70 override LC_ALL in testsuite rather than LANG
2009-10-14  Yuri G. Kudryashov  <urkud.urkud@gmail.com> (tiny change)

	* testsuite/Makefile.tests: Override LC_ALL, not LANG.
2009-10-14 10:54:09 +02:00
Paolo Bonzini f94164fd9f fix bug with s/[[[]//
2009-05-11  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c (snarf_char_class): Fix logic bug with [[[ in regular
	expressions (and a possibly uninitialized use of variable delim stemming
	from the bug).  Uninitialized variable bug reported by Zhongxing Xu.
	* testsuite/brackets.good: New.
	* testsuite/brackets.inp: New.
	* testsuite/brackets.sed: New.
	* testsuite/Makefile.am: Add test.
	* testsuite/Makefile.tests: Add test.
2009-05-11 10:56:05 +02:00
Paolo Bonzini 0270ded98d fix readin test properly
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Do not create homonymous links from builddir to srcdir.
	* testsuite/Makefile.tests: Create readin.in2 here.
	* testsuite/Makefile.am: Do not distribute it.
2009-05-11 10:55:24 +02:00
Paolo Bonzini 888ad7b090 handle CRLF endings in the testsuite for mingw
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* testsuite/Makefile.tests: Handle CRLF endings for mingw.
2009-04-27 12:14:34 +02:00
Paolo Bonzini 8dfd22c9e7 fixes after Bruno's testing
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Link readin.in2 into builddir.
	* configure: Regenerate.
	* doc/Makefile.am: Do not distribute sed.html.  Do not update
	sed.texi if the output does not change.
	* sed/Makefile.am: Order libraries according to their dependencies.
	* sed/compile.c (get_openfile): Declare FAIL as int.
	* sed/sed.c: Avoid printf ("") if REG_PERL is not defined.
	* testsuite/eval.in2: Do not include in the repository.
	* testsuite/Makefile.am: Clean always eval.in2 and never readin.in2.
	* testsuite/Makefile.tests: Provide a default empty definition of TIME
	and remove rules for readin.in2.
2009-04-27 12:11:54 +02:00
Paolo Bonzini 9497348a67 do not print the bug report address when --help is printed and exit status != 0
2009-01-28  Paolo Bonzini  <bonzini@gnu.org>

	* sed/sed.c (usage): Only print the bug report address for `sed --help'.
	(main): Print it for `sed --version' too.
	* testsuite/version.gin: Adapt.
	* testsuite/Makefile.tests: Refine help message test.
2009-04-27 12:04:38 +02:00
Paolo Bonzini ca6b418608 fix "x", "g", "G" commands with "sed -i" to match BSD sed
2009-01-05  Paolo Bonzini  <bonzini@gnu.org>

        * execute.c (read_pattern_space): Reset hold space at end-of-file
	if input->reset_at_next_file.
2009-01-05 17:03:45 +01:00
Paolo Bonzini 42ee512d47 add `z' extension
2008-09-29  Paolo Bonzini  <bonzini@gnu.org>

	* BUGS: Document s/.*.// behavior with invalid multibyte sequences.
	* NEWS: Document `z' extension.
	* doc/sed-in.texi: Document both things.
	* sed/compile.c (compile_program): Recognize `z'.
	* sed/execute.c (execute_program): Execute `z'.
	* testsuite/Makefile.am: Add badenc test.
	* testsuite/Makefile.tests: Add badenc test.
	* testsuite/badenc.good: New.
	* testsuite/badenc.inp: New.
	* testsuite/badenc.sed: New.
2008-09-29 10:30:29 +02:00
Paolo Bonzini 78d70edda0 merge from GNU sed
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-91
   bump version to 4.1c and fix some warnings

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-92
   fix '/foo/i\'

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-39
2008-01-09 16:18:56 +01:00
Paolo Bonzini 1fc0a80a1a merge from GNU sed patch-{80,81,82} and from debian ssed package
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-80
   merge documentation fixes from debian ssed package

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-81
   autogenerate version.good within configure

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-82
   fix my own braindead-ness

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-34
2008-01-09 16:18:53 +01:00
Paolo Bonzini 100396401f fix y/[/X/ and add more testcases for the y command
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-62
   fix y/[/X/ and add more testcases for the y command

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-27
2008-01-09 16:14:04 +01:00
Paolo Bonzini bb3c41042c sync with sed--stable--4.1
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-45
   do not add a default command-line in in-place editing mode

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-47
   fix handling of [^]xyz]

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-48
   add cache variable for -lcP test

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-49
   update FSF address

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-50
   more updates to the FSF address

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-51
   merge regex with glibc and adjust doc/.arch-inventory

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-52
   fix 0~2, signaled by Guglielmo Bondioni

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-53
   provide a better name for the man page

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-55
   remove RCS markers

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-56
   fix typo in docs/Makefile.am

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-57
   add LANG_SORBIAN and other mingw fixes

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-58
   fix sed faq address

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-24
2008-01-09 16:14:03 +01:00
Paolo Bonzini faaf9ad2cd sync with sed--stable--4.1
2005-02-10  Paolo Bonzini  <bonzini@gnu.org>

	* testsuite/appquit.good, testsuite/appquit.inp,
	testsuite/appquit.sed: New testcase.
	* testsuite/readin.sed: Quit after the last r command.
	* testsuite/readin.good: Adjust.
	* sed/execute.c (execute_program): Dump the results of the
	a/r/R commands just before quitting.

2005-02-10  Paolo Bonzini  <bonzini@gnu.org>

	* sed/regexp.c: Fix off-by-one error in the "invalid reference
	to subexpression" message.  Debian bug 294339.

Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-42
   fix debian bug 294339

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-43
   fix crash on /\(\)/x

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-44
   fix a/r/R commands when q is encountered

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-19
2008-01-09 16:14:01 +01:00
Paolo Bonzini a3f130089b do not use leftmost-longest matching for addresses.
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-33
   do not use leftmost-longest matching for addresses.

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-15
2008-01-09 16:13:59 +01:00
Paolo Bonzini 9c9919efe2 initial import
(automatically generated log message)

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--base-0
2004-10-20 21:42:31 +00:00