Commit Graph
75 Commits
Author SHA1 Message Date
Paolo Bonzini d3083e2ead fix parsing of s commands for MBCS codes including \x5c
2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
	    Hideo AOKI <hideo.aoki.tk@hitachi.com>

	* sed/compile.c (match_slash): Fix MBCS behavior.
	* sed/sed.h (MBSINIT): New.
2009-04-27 12:03:39 +02:00
Paolo Bonzini 8299b37936 remove memchr, memcmp, memmove compatibility code.
2009-01-20  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf, bootstrap.sh.in: Remove memchr, memcmp, memmove
	compatibility code.
	* gnulib: Update.
2009-04-27 12:02:28 +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
Ralf Wildenhues 8bab9a6f77 Let --posix turn off more GNU extensions.
2008-12-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	Let --posix turn off more GNU extensions.
	* sed/compile.c (mark_subst_opts): Turn off subst options i, I,
	s, S, x, X, m, and M in --posix mode.
	(compile_address): Disallow address modifiers, `FIRST~STEP',
	`ADDR1,+N', and `ADDR1,~N' in --posix mode.
	(compile_program): In --posix mode, do not accept e or z commands;
	do not accept text between an a, c, or i command and the following
	backslash; do not accept an argument to the l command.
2008-12-31 10:07:07 +01:00
Paolo Bonzini 3759c68e60 remove INSTALL from .gitignore, add it to repository 2008-12-22 11:52:52 +01:00
Paolo Bonzini f20cce9961 use gnulib's emulation for mb functions
2008-12-22  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Request modules emulating mb functions.
	* configure.ac: Do not look for mb functions here.
2008-12-22 11:25:33 +01:00
Paolo Bonzini 30bc5aecd7 switch to GFDL 1.3 2008-11-04 07:58:50 +01:00
Jim Meyering 113e401ea4 switch to external gettext
2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
	    Jim Meyering  <meyering@redhat.com>

	* Makefile.am: Remove intl subdir.  Require Automake 1.10.
	* configure.ac: Remove useless macros, switch to external gettext.
	* lib/Makefile.am: Remove intl subdir from CPPFLAGS.
	* sed/Makefile.am: Remove intl subdir from CPPFLAGS.
2008-10-03 10:34:17 +02:00
Paolo Bonzini a9afc06ca2 sync autoboot with gnulib's build-aux/bootstrap
2008-09-29  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot: Sync with gnulib's build-aux/bootstrap.
2008-10-03 10:26:49 +02:00
Paolo Bonzini 34f20ed13a use git submodules for gnulib 2008-09-29 11:37:45 +02:00
Paolo Bonzini d9031cf783 update gnulib
2008-09-29  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Add vasnprintf.
	* basicdefs.h: Replace alloca cruft with alloca.h.
	* bootstrap.sh.in: Update for new gnulib.
	* bootstrap.sh: Update for new gnulib.
	* configure.ac: Move gnulib macros earlier.
	* sed/execute.c: Do not include acl.h when bootstrapping.
2008-09-29 10:53:40 +02: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 1e9ea64481 close input files if not in -i mode!
2008-08-27  Paolo Bonzini  <bonzini@gnu.org>

	* sed/execute.c (closedown): Close the input file!
2008-08-27 14:05:02 +02:00
Paolo Bonzini 06426944ad add m4/.gitignore file 2008-08-21 09:36:08 +02:00
Paolo Bonzini c391287a32 add gl_DISABLE_THREADS to configure.ac
2008-08-20  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Add gl_DISABLE_THREADS.
2008-08-21 09:32:09 +02:00
Ralf Wildenhues 87a14c0518 drop leading whitespace from the info documentation
2008-08-20  Ralf Wildenhues  <ralf.wildenhues@gmx.de

	* doc/sed-in.texi: Drop leading whitespace where appropriate,
	do not use TABs.
	* doc/sed.texi: Regnerate.
2008-08-21 09:32:08 +02:00
Paolo Bonzini f5d0816872 gnulib removed strverscmp.c
2008-08-19  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c: Do not include strverscmp.c.
2008-08-20 10:09:35 +02:00
Paolo Bonzini 2121a3b414 remove northpark.edu address for sed FAQ
2008-07-21  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed-in.texi: Remove northpark.edu address for sed FAQ.
	* doc/sed.texi: Regenerate.
2008-07-21 19:25:59 +02:00
Paolo Bonzini 23933b640d clarify description of ^ and $ in the manual
2008-07-10  Paolo Bonzini  <bonzini@gnu.org>

        * doc/sed-in.texi: Make the description of ^ and $ more precise.
        * doc/sed.texi: Regenerate.
2008-07-11 14:12:53 +02:00
Paolo Bonzini f3f4680e98 update for newer gnulib
2008-05-15  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Update for newer gnulib.
2008-05-15 10:22:45 +02:00
Paolo Bonzini 42f9191aa0 update bootstrap.sh
2008-05-15  Paolo Bonzini  <bonzini@gnu.org>

	* bootstrap.sh.in: Define bool, true, false.  Reported by
	Jason Stover.  Adjust for gnulib changes.
	* bootstrap.sh: Regenerate.
2008-05-14 21:35:12 +02:00
Paul Eggert 1215d0e830 treat 's&foo&\&&' compatibly with traditional 'sed'
2008-04-24  Paul Eggert  <eggert@twinsun.com>

	* sed/compile.c (match_slash): Treat 's&foo&\&&' compatibly with
	traditional 'sed'.
	* testsuite/bsd.sh: Add test case for this.
	* testsuite/bsd.good: Add test case output.
2008-04-24 16:24:12 +02:00
Paolo Bonzini e332c757f7 fix bug with \& in POSIX mode, reported by Samuel Colin
2008-04-24  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c (setup_replacement): Fix bug with \& in POSIX mode.
2008-04-24 16:24:09 +02:00
Paolo Bonzini 7b5737d022 add .gitattributes file 2008-04-10 11:36:04 +02:00
Paolo Bonzini 4fb5d4a879 Parenthesize assignment used as "for-loop" expression.
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/execute.c (open_next_file, get_backup_file_name): Avoid
	warnings from gcc.
2008-01-16 15:41:50 +01:00
Jim Meyering 1e9d9bff8b sed/compile.c: Avoid uninitialized variable usage in snarf_char_class
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/compile.c (snarf_char_class): Reverse order of conjuncts
	so that "delim" is not used uninitialized.
2008-01-16 15:03:42 +01:00
Jim Meyering 1c474855c0 sed/utils.c: Remove declaration of unused local, "fd".
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/utils.c (panic): Remove declaration of unused local, "fd".
2008-01-16 15:03:41 +01:00
Jim Meyering de919f15a1 sed/execute.c: Avoid warnings from gcc, avoid shadowing global "pipe".
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/execute.c (open_next_file, get_backup_file_name): Avoid
	warnings from gcc.  Avoid shadowing global "pipe".
2008-01-16 15:03:40 +01:00
Paolo Bonzini 1b63ebc638 autoboot.conf (gnulib_modules): Add stat-macros and pathmax. 2008-01-16 15:03:13 +01:00
Paolo Bonzini 08af80bdd2 commit new .gitignore files produced by autoboot 2008-01-16 08:54:37 +01:00
Paolo Bonzini f38d82ed50 fix bug report address in autoboot 2008-01-16 08:51:21 +01:00
Paolo Bonzini 723c173998 upgrade autoboot 2008-01-16 08:47:33 +01:00
Paolo Bonzini 4f1e10aa93 fetch gnulib from git-cvsserver 2008-01-16 08:39:59 +01:00
Paolo Bonzini 7446bac7a8 support (?<=[^C])
2007-11-08  Paolo Bonzini  <bonzini@gnu.org>

	* regcomp.c (find_fixedlength): Support some more opcodes.

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-41
2008-01-09 16:18:58 +01:00
Paolo Bonzini 6cbea7cb7b merge from GNU sed up to patch-97
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-94
   switch to GPLv3

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-95
   document what's a GNU extension in sed(1)

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-96
   fix cross-device links with --follow-symlinks

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-97
   document q/Q in sed man page, improve html doc generation

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-40
2008-01-09 16:18:57 +01: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 3d4a48e9ee portability fixes from Bruno Haible
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-90
   portability fixes from Bruno Haible

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-38
2008-01-09 16:18:56 +01:00
Paolo Bonzini 63e9827c79 include string.h where necessary
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-89
   include string.h where necessary

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-37
2008-01-09 16:18:55 +01:00
Paolo Bonzini 4fabe6e89a remove a line which is dead code
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-88
   remove a line which is dead code

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-36
2008-01-09 16:18:54 +01:00
Paolo Bonzini b8d58d678d merge from CVS sed
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-83
   don't download bad translations

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-84
   --posix disables all extensions to regular expressions

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-85
   bump version number to 4.1b

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-86
   document --follow-symlinks

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-87
   fixes from Ralf Wildenhues

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-35
2008-01-09 16:18:53 +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 474fb0d562 finish gnulib conversion -- upgrade bootstrap and a few details
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-79
   finish gnulib conversion -- upgrade bootstrap and a few details

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-33
2008-01-09 16:18:52 +01:00
Paolo Bonzini 7103958ea4 gnulib works!
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-78
   gnulib works!

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-32
2008-01-09 16:18:51 +01:00
Paolo Bonzini 561f677dda gnulibification and other sed merges
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-69
   don't rely on malloc(0) != NULL

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-71
   treat cygwin CR/LF correctly (and by design, not by chance)

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-72
   fix cygwin binary mounts

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-73
   accept NUL for `.'

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-74
   gnulibify and add ACL support

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-75
   more gnulib fixes, ensure regex tests use gnulib regex

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-76
   gnulibify part 2, use gnulib-tool in autoboot and remove PO files from repo

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-77
   always set LINGUAS, even if --skip-po

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-31
2008-01-09 16:18:50 +01:00
Paolo Bonzini ae382af78e merge from GNU sed
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-67
   do not mention Estonian locale in BUGS

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-70
   hack to speed up UTF-8 processing

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-30
2008-01-09 16:14:05 +01:00
Paolo Bonzini 202623b7d6 fix bootstrap process
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-68
   robustify bootstrap process, ensure distribution of updated boostrap.sh

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-29
2008-01-09 16:14:05 +01:00
Paolo Bonzini 56a8cfb3cf merge from GNU sed
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-64
   fix for freebsd sed

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-65
   document that sed -i breaks links

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-66
   Fix compilation on non-GCC compilers, update po files

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-28
2008-01-09 16:14:05 +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 9acbf498e4 merge with sed--stable--4.1
Patches applied:

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-60
   fix `turn filenames into lowercase' example

 * bonzini@gnu.org--2004b/sed--stable--4.1--patch-61
   add install_sh definition to intl/po

git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-26
2008-01-09 16:14:04 +01:00
Paolo Bonzini c51e083c7b rebuild sed.1
git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-25
2008-01-09 16:14:03 +01:00