/
ChangeLog-2014
3630 lines (2584 loc) · 123 KB
/
ChangeLog-2014
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2014-09-06 Jim Meyering <meyering@fb.com>
maint: remove all trailing white space
First, run this command:
git grep -l ' $'|xargs perl -pi -e 's/[ \t]+$//'
Then some minor fix-up to make the two newly-failing tests
pass once again:
* testsuite/mac-mf.sed: Append this, s/ $//,
to eliminate trailing spaces in the actual output.
* testsuite/y-newline.good: Manually remove a trailing
space between two concatenated prompts.
2014-09-06 Jim Meyering <meyering@fb.com>
fixup: add the properly-named new test files
* testsuite/Makefile.am (EXTRA_DIST): Add y-zero.*,
not y-NUL.* here.
maint: correct failing "version" test
* configure.ac (COPYRIGHT_YEAR): Update to 2014, so
the "version" test passes once again.
* doc/sed.1: Also commit this auto-generated-yet-VC'd file.
2014-09-04 Jim Meyering <meyering@fb.com>
fix "y" to work with NUL in the RHS
* sed/execute.c (do_list) [case 'y']: Handle NUL bytes
in the RHS of a y/LHS/RHS/ transliteration.
* testsuite/y-zero.good: New test-related files.
* testsuite/y-zero.inp:
* testsuite/y-zero.sed:
* testsuite/Makefile.am (SEDTESTS): Add y-zero here.
* testsuite/Makefile.tests: And here.
* NEWS (Bug fixes): Describe it.
The bug was reported by table@inventati.org,
with the execute.c change mostly by Paolo Bonzini.
2014-07-24 Jose E. Marchesi <jemarch@gnu.org>
* gnulib: Update.
2014-03-26 Jose E. Marchesi <jemarch@gnu.org>
* doc/sed.texi (Regular Expressions): avoid a potential
misunderstanding in the description of the \| operator.
2013-10-16 David A. Wheeler <dwheeler@dwheeler.com>
* doc/sed-in.texi: Document "-E" option to use EREs. GNU sed already
supported "-E" as an undocumented synonym for "-r", but "-E" is now
in POSIX. See: http://austingroupbugs.net/view.php?id=528.
* doc/sed.1: Likewise.
* doc/sed.texi: Likewise.
* doc/sed.x: Likewise.
* sed/sed.c: Likewise.
2013-10-06 Jose E. Marchesi <jemarch@gnu.org>
* basicdefs.h (PATH_MAX): Defined to some constant in case it is
not defined by system headers.
* sed/utils.c: Do not include pathmax.h anymore.
* bootstrap.conf (gnulib_modules): Do not use the gnulib module
pathmax.
2013-09-30 Jose E. Marchesi <jemarch@gnu.org>
* doc/sed.texi (Regular Expressions): Typo: implicity numbered ->
implicitly numbered.
Reported by Arthur Budco.
2013-07-12 Jose E. Marchesi <jemarch@gnu.org>
* doc/sed-in.texi (Extended regexps): Add an example on using | in
extended regular expressions. Suggested by Nils Barth.
2013-02-02 Jose E. Marchesi <jemarch@gnu.org>
* gnulib: Update.
* configure.ac (COPYRIGHT_YEAR): Updated to 2013.
2012-12-29 Stefano Lattarini <stefano.lattarini@gnu.org> (tiny change)
testsuite: make test logs more verbose
* testsuite/runtest: Adjust and simplify.
2012-12-29 Stefano Lattarini <stefano.lattarini@gnu.org> (tiny change)
maint: enable Automake parallel testsuite harness
It is better than the older test driver. It is also the
default now, starting from Automake 1.13; so having it
enabled unconditionally will allow GNU sed to be seamlessly
bootstrapped by Automake 1.13.
* configure.ac (AM_INIT_AUTOMAKE): Add 'parallel-tests' option.
Also require Automake 1.11.1, since that is the minimal version
to have a sane 'parallel-tests' support.
(AC_PREREQ): Bump requirement to 2.62, since that is the
minimal version required by Automake 1.11.1.
* testsuite/Makefile.am (TESTS_ENVIRONMENT): Remove the
invocation for the test runner "$(srcdir)/runtest"; it's
correct place is ...
(LOG_COMPILER): ... here.
2012-12-29 Stefano Lattarini <stefano.lattarini@gnu.org> (tiny change)
build: avoid bootstrap failure
* bootstrap.conf (gnulib_modules): Add 'threadlib'.
2012-12-21 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Bump version number. Replace COPYRIGHT_YEAR.
* Makefile.am (dist-hook): Revert 2010-08-10 change.
2012-12-21 Paolo Bonzini <bonzini@gnu.org>
* autoboot: Rename to bootstrap.
* autoboot.conf: Rename to bootstrap.conf.
* README.boot: Remove.
* Makefile.am: Remove README.boot, add bootstrap and bootstrap.conf.
2012-12-21 Paolo Bonzini <bonzini@gnu.org>
* gnulib: Update.
* testsuite/version.gin: Regenerate.
2012-12-21 Paolo Bonzini <bonzini@gnu.org>
* doc/sed.texi: Regenerate.
* doc/sed.1: Regenerate.
* po/sed.pot: Regenerate.
2012-07-25 Paolo Bonzini <bonzini@gnu.org>
* doc/sed-in.texi: Document difference between "e" and "r"
commands.
2012-04-29 Jim Hill <gjthill@gmail.com>
* Makefile.am (noinst_DATA, dist-hook): build failed after git
clean -dfx finish bootstrap.sh removal.
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-03-16 Paolo Bonzini <bonzini@gnu.org>
* testsuite/version.gin: Regenerate.
2012-03-16 Paolo Bonzini <bonzini@gnu.org>
* basicdefs.h (P_): Remove.
* sed/compile.c: Adjust.
* sed/execute.c: Likewise.
* sed/fmt.c: Likewise.
* sed/sed.c: Likewise.
* sed/sed.h: Likewise.
* sed/utils.c: Likewise.
* sed/utils.h: Likewise.
2012-03-16 Paolo Bonzini <bonzini@gnu.org>
* basicdefs.h (FREE): Remove.
* sed/compile.c: Adjust.
* sed/execute.c: Adjust.
* sed/regexp.c: Adjust.
* sed/utils.c: Adjust, remove ck_free.
* sed/utils.h: Adjust, remove ck_free.
2012-03-16 Paolo Bonzini <bonzini@gnu.org>
* basicdefs.h (CAST, VCAST, VOID, MEMCPY, MEMMOVE): Rip out.
* sed/compile.c: Adjust.
* sed/execute.c: Adjust.
* sed/regexp.c: Adjust.
* sed/utils.c: Adjust.
* sed/utils.h: Adjust.
2012-03-16 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c: Unconditionally compile for MBCS.
* sed/mbcs.c: Unconditionally compile for MBCS.
* sed/sed.h: Unconditionally compile for MBCS.
2012-03-16 Paolo Bonzini <bonzini@gnu.org>
* basicdefs.h: Enjoy gnulib's headers.
* sed/compile.c: Likewise.
* sed/execute.c: Likewise.
* sed/regexp.c: Likewise.
* sed/sed.c: Likewise.
* sed/sed.h: Likewise.
* sed/utils.c: Likewise.
2012-03-16 Paolo Bonzini <bonzini@gnu.org>
* bootstrap.sh.in: Remove.
* bootstrap.sh: Remove.
* configure.ac: Do not create bootstrap.sh.
* basicdefs.h: Remove guards.
* sed/execute.c [BOOTSTRAP]: Remove guards.
* sed/sed.c [BOOTSTRAP]: Remove guards.
* sed/sed.h [BOOTSTRAP]: Remove guards.
2012-03-16 Paolo Bonzini <bonzini@gnu.org>
* gnulib: Update.
2012-03-16 Paolo Bonzini <bonzini@gnu.org>
* doc/sed.x: Document address behavior across input files.
* doc/sed.1: Regenerate.
2012-02-13 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Test whether fopen("foo", "rt") works.
* sed/compile.c: Do not open scripts with "rt" mode if it doesn't.
* sed/sed.c: Never open input files with "rt" mode.
2012-02-05 Paolo Bonzini <bonzini@gnu.org>
Jim Hill <gjthill@gmail.com>
* autoboot.conf: Change getline to getdelim.
* doc/sed-in.texi: Document -z/--null-data.
* doc/sed.texi: Regenerate.
* doc/sed.1: Regenerate.
* sed/execute.c: Change '\n' to buffer_delimiter.
* sed/sed.c: Add support for -z/--null-data.
* sed/sed.h: Add buffer_delimiter.
* sed/utils.c: Change ck_getline to ck_getdelim.
* sed/utils.h: Change ck_getline to ck_getdelim.
* NEWS: Document new option.
2011-11-23 Paolo Bonzini <bonzini@gnu.org>
* doc/sed-in.texi: Document how multiline mode affects matching
newlines against period. Reported by Dmitry Bolshakov.
2011-08-29 Paolo Bonzini <bonzini@gnu.org>
* sed/sed.c (usage): Fix documentation for -i. Reported by
Dennis Bartlett.
2011-07-11 Jim Meyering <meyering@redhat.com>
avoid silent data loss when an input line is 2^31 bytes or longer
If one line in a file has length (including newline) of 2^31, then
applying sed -i to that file truncates it to size 0. I first
noticed it like this: Create a file with line of length 2^31-1
$ perl -le 'print "v"x(2**31-1)' > k
Then prepend a byte to that line:
$ sed -i 's/^/v/' k
Surprise! The file is empty.
* sed/utils.c (ck_getline): Declare "result" to be of type ssize_t,
rather than int, to match the return type of getline.
2011-07-14 Padraig Brady <p@draigbrady.com>
* execute.c (open_next_file): Only reopen stdin on Windows/DOS.
2011-05-27 Paolo Bonzini <bonzini@gnu.org>
* doc/sed-in.texi: Explain behavior of \l and \u at the end
of the replacement text.
* doc/sed.texi: Regenerate.
* sed/execute.c (append_replacement, do_subst): Further
simplification.
2011-05-27 Paolo Bonzini <bonzini@gnu.org>
* doc/sed-in.texi: Fix incorrect comment in the "Increment a
number" example. Reported by Wu Liang and Micah Cowan.
* doc/sed.texi: Regenerate.
2011-03-11 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c (normalize_text): Clang analyzer cleanup.
* sed/execute.c (append_replacement, do_subst): Same.
* sed/utils.c (ck_getline): Same.
2010-11-13 Jari Aalto <jari.aalto@cante.net>
* doc/sed.x: Order commands alphabetically.
* doc/sed.1: Regenerate.
* doc/sed.texi: Regenerate.
2010-11-10 Paolo Bonzini <bonzini@gnu.org>
* doc/sed-in.texi: Fix double negation in comment, escape
file names.
2010-11-03 Eric Blake <eblake@redhat.com>
* basicdefs.h (ISDIGIT): Avoid compiler warning on cygwin.
* sed/compile.c (normalize_text): Avoid undefined behavior.
* sed/sed.c (includes): Supply missing header.
2010-11-01 Paolo Bonzini <bonzini@gnu.org>
* autoboot.conf: Replace gettext with gettext-h. Suggested by
Gerald Pfeifer and Eric Blake.
* configure.ac: Downgrade minimum requested version of gettext
to 0.17.
2010-10-31 Gerald Pfeifer <gerald@pfeifer.com>
* doc/sed-in.texi (Extended regexps): Add '|' to the list of
differences. Note that "\|" is a GNU extension to begin with.
* doc/sed.texi: Rebuild.
2010-10-20 Paolo Bonzini <bonzini@gnu.org>
* autoboot.conf: Add fwriting.
* sed/utils.c: Use it.
2010-09-20 Paolo Bonzini <bonzini@gnu.org>
* doc/configure.ac: Mention bug-sed@gnu.org.
* doc/sed.x: Mention bug-sed@gnu.org.
* doc/sed-in.texi: Mention bug-sed@gnu.org.
2010-08-30 Paolo Bonzini <bonzini@gnu.org>
* Makefile.am (dist-hook): Remove COPYRIGHT_YEAR check.
* autoboot.conf (gnulib_modules): Add version-etc-fsf.
* configure.ac (COPYRIGHT_YEAR): Remove. Change package name to
"GNU sed".
* doc/sed.1: Regenerate.
* sed/sed.c (AUTHORS): New.
(main): Use version_etc.
2010-07-18 Paolo Bonzini <bonzini@gnu.org>
* sed.c (write_mode): New.
(main): Initialize it to "wb" if --binary is passed.
* sed.h (write_mode): New.
* compile.c (mark_subst_opts, compile_program): Use it instead
of "w".
* execute.c (open_next_file): Pass write_mode to ck_mkstemp.
* utils.c (ck_mkstemp): Accept mode, pass it to fdopen. Constify.
* utils.h (ck_mkstemp): Adjust prototype.
2010-08-17 Paolo Bonzini <bonzini@gnu.org>
Fix imprecision in the documentation of `D'.
* doc/sed-in.texi (D command): Fix documentation of behavior for
pattern space ending with \n and with no other newline.
Reported by Randall Cotton.
* doc/sed.x (D command): Fix documentation of behavior for
pattern space ending with \n and with no other newline.
* doc/sed.texi: Regenerate.
* doc/sed.1: Regenerate.
2010-07-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Let --posix turn off nonportable scripts ending in backslash.
* sed/compile.c (errors, INCOMPLETE_CMD): New error string.
(compile_program): In strict posix mode, complain about incomplete
command.
* NEWS: Update.
Report by Bruno Haible.
2010-07-16 Paolo Bonzini <bonzini@gnu.org>
* autoboot.conf (gnulib_modules): Replace mkstemp with mkostemp.
* bootstrap.sh.in: Compile mkostemp.c instead of mkstemp.c.
* gnulib: Update.
* NEWS: Mention change.
* sed/utils.c (ck_mkstemp): Use mkostemp to work around Cygwin
oddity. Reported by Stepan Kasal.
2010-05-03 Timothy Baker <timothypaulbaker@gmail.com> (tiny change)
* doc/sed.texi (Regular expressions): Fix typo.
2009-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* doc/sed.texi (Extended Commands): Document F command.
* doc/sed-in.texi: Regenerate.
* sed/compile.c (compile_program): Accept 'F' if not --posix.
* sed/execute.c (open_next_file): Always initialize in_file_name.
(execute_program): Handle 'F'.
* configure.ac: Bump SED_FEATURE_VERSION.
* NEWS: Update.
2009-12-07 Clint Adams <schizo@debian.org> (tiny change)
* sed/execute.c (open_next_file): If is_selinux_enabled returns -1,
treat it as "disabled".
2009-10-15 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c (closedown): First change owner (while permissions
stay 0?00), then mode.
2009-10-15 Paolo Bonzini <bonzini@gnu.org>
WANG Yunfeng <uhuruh@gmail.com>
* sed/execute.c (str_append, str_append_modified): Handle incomplete
sequences as if they were invalid.
2009-10-14 Paolo Bonzini <bonzini@gnu.org>
* po/sed.pot: Update.
2009-10-14 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Use cache variables rather than AC_CHECK_FUNC.
2009-10-14 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Remove obselete configure tests.
* sed/fmt.c: Assume limits.h is always present.
* sed/utils.c: Assume vfprintf is always present.
2009-10-14 Yuri G. Kudryashov <urkud.urkud@gmail.com> (tiny change)
* testsuite/Makefile.tests: Override LC_ALL, not LANG.
2009-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* doc/sed-in.texi (Invoking sed): Add index entries for --posix,
-s, --separate.
(Other Commands): Fix typo.
* doc/sed.texi: Regenerate.
2009-09-07 Dmitry Chistikov <dd1email@gmail.com> (tiny change)
* doc/sed-in.texi: Document how to separate commands.
* doc/sed.texi: Regenerate.
2009-08-30 Paolo Bonzini <bonzini@gnu.org>
* autoboot.conf: Add ssize_t.
* configure.ac: Remove useless stuff, bump gettext requirement to 0.17.
2009-08-10 Bake Timmons <b3timmons@speedymail.org> (tiny change)
* doc/sed-in.texi: Fix typo.
2009-06-27 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Bump version.
* NEWS: Bump version.
* gnulib: Update.
* doc/sed.1: Regenerate.
2009-06-25 Paolo Bonzini <bonzini@gnu.org>
* autoboot.conf: Add selinux-h.
* execute.c: Copy over file creation context before creating a new file.
2009-06-25 Paolo Bonzini <bonzini@gnu.org>
* execute.c: Do not copy ACLs until the file is copied.
* utils.c (ck_mkstemp): Set a restrictive umask on temporary files.
2009-06-26 Paolo Bonzini <bonzini@gnu.org>
* autoboot: Do not use GIT_CONFIG_LOCAL.
2009-06-15 Paolo Bonzini <bonzini@gnu.org>
* autoboot.conf: Add memchr again.
* gnulib: Update.
2009-06-11 Sergey Farbotka <z8sergey8z@gmail.com> (tiny change)
* sed/execute.c (open_next_file): Fix off-by-one causing problems
under Cygwin.
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 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Define COPYRIGHT_YEAR.
* Makefile.am (dist-hook): Test it.
* sed/mbcs.c: Fix copyright years.
* sed/sed.c: Fix copyright years. Change COPYRIGHT_NOTICE to
COPYRIGHT_YEAR.
* sed/utils.c: Fix copyright years.
* testsuite/version.gin: Use COPYRIGHT_YEAR.
2009-04-30 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c: Declare bool arguments as int instead to please AIX XLC.
* sed/execute.c: Declare bool arguments as int instead to please AIX XLC.
* sed/utils.c: Declare bool arguments as int instead to please AIX XLC.
* sed/utils.h: Declare bool arguments as int instead to please AIX XLC.
2009-04-27 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Bump version number.
* configure: Regenerate.
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-04-27 Paolo Bonzini <bonzini@gnu.org>
* autoboot.conf: Add rename.
* gnulib: Update.
2009-04-27 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: XFAIL UTF-8 tests where appropriate.
2009-04-27 Paolo Bonzini <bonzini@gnu.org>
* testsuite/Makefile.tests: Handle CRLF endings for mingw.
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-03-31 Paolo Bonzini <bonzini@gnu.org>
* bootstrap.sh.in: Add __bool_true_false_are_defined.
* bootstrap.sh: Regenerate.
* basicdefs.h: Do not provide bool definitions for BOOTSTRAP at all.
2009-03-31 Paolo Bonzini <bonzini@gnu.org>
* sed/sed.c (contact): New.
(usage): From here.
(main): Use it for `sed --version' too.
* configure.ac: Point to GNU project mailing lists.
* sed/sed.c (contact): Use PACKAGE_BUGREPORT.
* testsuite/version.gin: Likewise.
* testsuite/version.good: Regenerate.
* doc/sed.1: Regenerate.
* bootstrap.sh.in (PACKAGE_BUGREPORT): New.
* bootstrap.sh: Regenerate.
2009-03-31 Paolo Bonzini <bonzini@gnu.org>
* testsuite/Makefile.am: Distribute utf8-3 and utf8-4 test files.
2009-02-17 Paolo Bonzini <bonzini@gnu.org>
* testsuite/Makefile.tests: Rewrite rule for utf8-[1234].
Reported by Ralf Wildenhues.
2009-02-17 Paolo Bonzini <bonzini@gnu.org>
* sed/sed.c (usage): Print homepage URL.
* testsuite/version.gin: Update.
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-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-01-20 Paolo Bonzini <bonzini@gnu.org>
* autoboot.conf, bootstrap.sh.in: Remove memchr, memcmp, memmove
compatibility code.
* gnulib: Update.
2009-01-09 Paolo Bonzini <bonzini@gnu.org>
* tests/SPENCER.tests: Add testcases for glibc bugzilla 697.
* gnulib: Update.
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.
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-22 Paolo Bonzini <bonzini@gnu.org>
* autoboot.conf: Request modules emulating mb functions.
* configure.ac: Do not look for mb functions here.
2008-10-03 Paolo Bonzini <bonzini@gnu.org>
Jim Meyering <meyering@redhat.com>
* autoboot.conf: Add localcharset.
* 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-02 Paolo Bonzini <bonzini@gnu.org>
* autoboot: Sync with gnulib's build-aux/bootstrap.
2008-09-29 Paolo Bonzini <bonzini@gnu.org>
* autoboot: Sync with gnulib's build-aux/bootstrap.
2008-09-29 Paolo Bonzini <bonzini@gnu.org>
* testsuite/Makefile.am: Add the utf8-{1,2,3,4} tests.
* testsuite/Makefile.tests: Add the utf8-{1,2,3,4} tests.
* testsuite/runtest: Support skipping tests.
* testsuite/utf8-1.good: New.
* testsuite/utf8-1.inp: New.
* testsuite/utf8-1.sed: New.
* testsuite/utf8-2.good: New.
* testsuite/utf8-2.inp: New.
* testsuite/utf8-2.sed: New.
* testsuite/utf8-3.good: New.
* testsuite/utf8-3.inp: New.
* testsuite/utf8-3.sed: New.
* testsuite/utf8-4.good: New.
* testsuite/utf8-4.inp: New.
* testsuite/utf8-4.sed: New.
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-28 Paolo Bonzini <bonzini@gnu.org>
* 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-08-27 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c (closedown): Close the input file!
2008-08-20 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Add gl_DISABLE_THREADS.
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-19 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c: Do not include strverscmp.c.
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-10 Paolo Bonzini <bonzini@gnu.org>
* doc/sed-in.texi: Make the description of ^ and $ more precise.
* doc/sed.texi: Regenerate.
2008-06-04 Vladimir Marek <vladimir.marek@sun.com>
* basicdefs.h: Don't hardcode usage of prototypes on SunStudio.
2008-05-15 Paolo Bonzini <bonzini@gnu.org>
* autoboot.conf: Update for newer gnulib.
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-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 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c (setup_replacement): Fix bug with \& in POSIX mode.
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 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 Jim Meyering <meyering@redhat.com>
* sed/utils.c (panic): Remove declaration of unused local, "fd".
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 Jim Meyering <meyering@redhat.com>
* autoboot.conf (gnulib_modules): Add stat-macros and pathmax.
2007-10-25 Paolo Bonzini <bonzini@gnu.org>
Mike Frysinger <vapier@gentoo.org>
* doc/sed.x (q, Q): Document argument.
* configure.ac: Remove texi2html checks.
* doc/Makefile.am: Remove rules for sed.html, always distribute it.
2007-08-14 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c (open_next_file): Follow symlink here...
(closedown): ... not here.
2007-06-29 Paolo Bonzini <bonzini@gnu.org>
* sed/mbcs.c: Upgrade to GPLv3.
* sed/regexp.c: Upgrade to GPLv3.
* sed/sed.c: Upgrade to GPLv3.
* sed/sed.h: Upgrade to GPLv3.
* sed/utils.c: Upgrade to GPLv3.
* sed/utils.h: Upgrade to GPLv3.
* sed/compile.c: Upgrade to GPLv3.
* sed/execute.c: Upgrade to GPLv3.
* sed/fmt.c: Upgrade to GPLv3.
2007-03-01 Masatake YAMATO <jet@gyve.org> (tiny change)
* sed/compile.c (compile_program): Accept 0,/REGEXP/ address
specification only if --posix is not specified.
2007-02-05 Paolo Bonzini <bonzini@gnu.org>
* testsuite/bug-regex27.c, testsuite/bug-regex28.c: New, from
glibc (written by Jakub Jelinek).
2007-01-26 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c (check_final_program): Don't set text if the
pending_text is initialized but empty.
* sed/execute.c (output_line): Don't print text if it is NULL.
* testsuite/Makefile.am (TESTS): Add insert.
* testsuite/Makefile.tests (insert): New.
* testsuite/insert.good, testsuite/insert.sed, testsuite/insert.inp: New
testcase from Jonas Koelker.
2006-12-29 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c: Fix warnings.
* sed/execute.c: Fix warnings.
2006-12-22 Bruno Haible <bruno@clisp.org>
* sed/utils.c: Include pathmax.
* sed/mbcs.c: Use local_charset.
* sed/execute.c: Copy with padding after the mbstate_t member.
2006-12-21 Paolo Bonzini <bonzini@gnu.org>
* sed/mbcs.c: Include string.h (reported by Henning Nielsen Lund).
* sed/fmt.c: Likewise.
* sed/regexp.c: Likewise.
2006-12-18 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c (closedown): Remove dead code.
2006-12-17 Paolo Bonzini <bonzini@gnu.org>
* sed/utils.c: Include limits.h.
2006-12-16 Paolo Bonzini <bonzini@gnu.org>
* doc/sed-in.texi: Document --follow-symlinks.
2006-12-15 Paolo Bonzini <bonzini@gnu.org>
* sed/regexp.c: Disable all extensions on --posix.
2006-09-24 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c: Support ACLs.
* lib/utils.c: Move...
* sed/utils.c: ... here, and remove xmalloc.
2006-08-21 Paolo Bonzini <bonzini@gnu.org>
* sed/regexp.c: Accept NUL bytes for `.'. Accept 'a\(b' in
POSIXLY_CORRECT/POSIXLY_BASIC posixicity.
2006-08-03 Paolo Bonzini <bonzini@gnu.org>
Revert this part of the previous change:
2006-08-03 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c (get_openfile): Change second argument to char
and turn it into a string within the function. Adjust callers.
2006-08-03 Paolo Bonzini <bonzini@gnu.org>
Corinna Vinschen <vinschen@redhat.com>
* lib/getline.c (getline): Remove Windows special casing.
* lib/utils.c (register_open_file, ck_fdopen): New.
(ck_fopen, ck_mkstemp): Use register_open_file.
* lib/utils.h (ck_fdopen): New.
* sed/execute.c (open_next_file): Reopen stdin.
* sed/sed.h (read_mode): New.
* sed/sed.c (read_mode): New.
(main): Set it on --binary.
(usage): Document --binary.
* sed/compile.c (get_openfile): Change second argument to char
and turn it into a string within the function. Adjust callers.
* sed/execute.c (dump_append_queue, open_next_file): Use it
as mode for ck_fopen.
2006-08-03 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c (str_append): Use is_utf8 to skip useless work.
* sed/mbcs.c (initialize_mbcs): Look for a UTF-8 locale.
(is_utf8): New.
* sed/sed.h (is_utf8): New.
2006-07-13 Paolo Bonzini <bonzini@gnu.org>
* bootstrap.sh.in: Add a few autoconfy tests.
* Makefile.am: Update distributed bootstrap.sh.
2006-05-15 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
* sed/basicdefs.h (OB_MALLOC): Turn VCAST into void * cast.
2006-02-03 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c (compile_program) <case 'y'>: Pass false to match_slash.
2005-09-07 Paolo Bonzini <bonzini@gnu.org>
* lib/regcomp.c: Update from upstream.
* lib/regex.c: Update from upstream.
* lib/regex_.h: Update from upstream.
* lib/regex_internal.c: Update from upstream.
* lib/regex_internal.h: Update from upstream.
* lib/regexec.c: Update from upstream.
2005-08-30 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c (reset_addresses): Never activate ADDR_IS_NUM_MOD
addresses.
* testsuite/modulo.good, testsuite/modulo.inp, testsuite/modulo.sed:
New.
* testsuite/Makefile.tests: Add new testcase.
* testsuite/Makefile.am: Add new testcase.
* testsuite/Makefile.in: Regenerate.
2005-05-18 Maciej W. Rozycki <macro@linux-mips.org>
* configure.ac: Use a cache variable for the libcP test.
* configure: Regenerate.
2005-05-16 Eero Hakkinen <eero17@bigfoot.com>
* sed/compile.c (snarf_char_class): Fix handling of
[^]xyz].
2005-04-04 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c (process_files): Do not add a default
command-line in in-place editing mode.
2005-02-10 Paolo Bonzini <bonzini@gnu.org>
* testsuite/Makefile.tests: Add new testcase.
* testsuite/Makefile.am: Add new testcase.
* testsuite/Makefile.in: Regenerate.
* 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.
2005-02-08 Paolo Bonzini <bonzini@gnu.org>
* lib/obstack.h: include config.h.
2005-02-01 Paolo Bonzini <bonzini@gnu.org>
* doc/Makefile.am: Don't enable MAKEINFO_HTML and TEXI2HTML_HTML
rules unless BUILD_HTML.
2005-01-25 Paolo Bonzini <bonzini@gnu.org>
* sed/regexp.c: Fix building on GCC 2.95 and earlier.
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.
2004-12-26 Paolo Bonzini <bonzini@gnu.org>
* BUGS: Add section about [a-z] matching uppercase characters,
and other locale issues.
* doc/sed-in.texi [!PERL]: Likewise.
2004-11-15 Paolo Bonzini <bonzini@gnu.org>
* sed/execute.c (str_append_modified): Copy the first character
when using \l or \u in a multi-byte configuration. Use
WCRTOMB instead of wcrtomb.
* sed/sed.h (WCRTOMB): New.
2004-11-11 Paolo Bonzini <bonzini@gnu.org>
* tst-rxspecer.c: Do not mix instructions and
declarations.
* basicdefs.h: Include locale.h before #defining
gettext, to avoid breakage under Solaris.