-
Notifications
You must be signed in to change notification settings - Fork 4
/
ChangeLog
3523 lines (2504 loc) · 119 KB
/
ChangeLog
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
2012-12-21 Paolo Bonzini <[email protected]>
* configure.ac: Bump version number. Replace COPYRIGHT_YEAR.
* Makefile.am (dist-hook): Revert 2010-08-10 change.
2012-12-21 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* gnulib: Update.
* testsuite/version.gin: Regenerate.
2012-12-21 Paolo Bonzini <[email protected]>
* doc/sed.texi: Regenerate.
* doc/sed.1: Regenerate.
* po/sed.pot: Regenerate.
2012-07-25 Paolo Bonzini <[email protected]>
* doc/sed-in.texi: Document difference between "e" and "r"
commands.
2012-04-29 Jim Hill <[email protected]>
* Makefile.am (noinst_DATA, dist-hook): build failed after git
clean -dfx finish bootstrap.sh removal.
2012-04-13 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* testsuite/version.gin: Regenerate.
2012-03-16 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* gnulib: Update.
2012-03-16 Paolo Bonzini <[email protected]>
* doc/sed.x: Document address behavior across input files.
* doc/sed.1: Regenerate.
2012-02-13 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
Jim Hill <[email protected]>
* 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 <[email protected]>
* doc/sed-in.texi: Document how multiline mode affects matching
newlines against period. Reported by Dmitry Bolshakov.
2011-08-29 Paolo Bonzini <[email protected]>
* sed/sed.c (usage): Fix documentation for -i. Reported by
Dennis Bartlett.
2011-07-11 Jim Meyering <[email protected]>
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 <[email protected]>
* execute.c (open_next_file): Only reopen stdin on Windows/DOS.
2011-05-27 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* doc/sed.x: Order commands alphabetically.
* doc/sed.1: Regenerate.
* doc/sed.texi: Regenerate.
2010-11-10 Paolo Bonzini <[email protected]>
* doc/sed-in.texi: Fix double negation in comment, escape
file names.
2010-11-03 Eric Blake <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* autoboot.conf: Add fwriting.
* sed/utils.c: Use it.
2010-09-20 Paolo Bonzini <[email protected]>
* doc/configure.ac: Mention [email protected].
* doc/sed.x: Mention [email protected].
* doc/sed-in.texi: Mention [email protected].
2010-08-30 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
* 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 <[email protected]> (tiny change)
* doc/sed.texi (Regular expressions): Fix typo.
2009-11-15 Ralf Wildenhues <[email protected]>
* 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 <[email protected]> (tiny change)
* sed/execute.c (open_next_file): If is_selinux_enabled returns -1,
treat it as "disabled".
2009-10-15 Paolo Bonzini <[email protected]>
* sed/execute.c (closedown): First change owner (while permissions
stay 0?00), then mode.
2009-10-15 Paolo Bonzini <[email protected]>
WANG Yunfeng <[email protected]>
* sed/execute.c (str_append, str_append_modified): Handle incomplete
sequences as if they were invalid.
2009-10-14 Paolo Bonzini <[email protected]>
* po/sed.pot: Update.
2009-10-14 Paolo Bonzini <[email protected]>
* configure.ac: Use cache variables rather than AC_CHECK_FUNC.
2009-10-14 Paolo Bonzini <[email protected]>
* 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 <[email protected]> (tiny change)
* testsuite/Makefile.tests: Override LC_ALL, not LANG.
2009-10-12 Ralf Wildenhues <[email protected]>
* 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 <[email protected]> (tiny change)
* doc/sed-in.texi: Document how to separate commands.
* doc/sed.texi: Regenerate.
2009-08-30 Paolo Bonzini <[email protected]>
* autoboot.conf: Add ssize_t.
* configure.ac: Remove useless stuff, bump gettext requirement to 0.17.
2009-08-10 Bake Timmons <[email protected]> (tiny change)
* doc/sed-in.texi: Fix typo.
2009-06-27 Paolo Bonzini <[email protected]>
* configure.ac: Bump version.
* NEWS: Bump version.
* gnulib: Update.
* doc/sed.1: Regenerate.
2009-06-25 Paolo Bonzini <[email protected]>
* autoboot.conf: Add selinux-h.
* execute.c: Copy over file creation context before creating a new file.
2009-06-25 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* autoboot: Do not use GIT_CONFIG_LOCAL.
2009-06-15 Paolo Bonzini <[email protected]>
* autoboot.conf: Add memchr again.
* gnulib: Update.
2009-06-11 Sergey Farbotka <[email protected]> (tiny change)
* sed/execute.c (open_next_file): Fix off-by-one causing problems
under Cygwin.
2009-05-11 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* configure.ac: Bump version number.
* configure: Regenerate.
2009-04-27 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* autoboot.conf: Add rename.
* gnulib: Update.
2009-04-27 Paolo Bonzini <[email protected]>
* configure.ac: XFAIL UTF-8 tests where appropriate.
2009-04-27 Paolo Bonzini <[email protected]>
* testsuite/Makefile.tests: Handle CRLF endings for mingw.
2009-04-27 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* testsuite/Makefile.am: Distribute utf8-3 and utf8-4 test files.
2009-02-17 Paolo Bonzini <[email protected]>
* testsuite/Makefile.tests: Rewrite rule for utf8-[1234].
Reported by Ralf Wildenhues.
2009-02-17 Paolo Bonzini <[email protected]>
* sed/sed.c (usage): Print homepage URL.
* testsuite/version.gin: Update.
2009-01-28 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
Hideo AOKI <[email protected]>
* sed/compile.c (match_slash): Fix MBCS behavior.
* sed/sed.h (MBSINIT): New.
2009-01-20 Paolo Bonzini <[email protected]>
* autoboot.conf, bootstrap.sh.in: Remove memchr, memcmp, memmove
compatibility code.
* gnulib: Update.
2009-01-09 Paolo Bonzini <[email protected]>
* tests/SPENCER.tests: Add testcases for glibc bugzilla 697.
* gnulib: Update.
2009-01-05 Paolo Bonzini <[email protected]>
* execute.c (read_pattern_space): Reset hold space at end-of-file
if input->reset_at_next_file.
2008-12-31 Ralf Wildenhues <[email protected]>
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 <[email protected]>
* autoboot.conf: Request modules emulating mb functions.
* configure.ac: Do not look for mb functions here.
2008-10-03 Paolo Bonzini <[email protected]>
Jim Meyering <[email protected]>
* 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 <[email protected]>
* autoboot: Sync with gnulib's build-aux/bootstrap.
2008-09-29 Paolo Bonzini <[email protected]>
* autoboot: Sync with gnulib's build-aux/bootstrap.
2008-09-29 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* sed/execute.c (closedown): Close the input file!
2008-08-20 Paolo Bonzini <[email protected]>
* configure.ac: Add gl_DISABLE_THREADS.
2008-08-20 Ralf Wildenhues <[email protected]
* doc/sed-in.texi: Drop leading whitespace where appropriate,
do not use TABs.
* doc/sed.texi: Regnerate.
2008-08-19 Paolo Bonzini <[email protected]>
* sed/compile.c: Do not include strverscmp.c.
2008-07-21 Paolo Bonzini <[email protected]>
* doc/sed-in.texi: Remove northpark.edu address for sed FAQ.
* doc/sed.texi: Regenerate.
2008-07-10 Paolo Bonzini <[email protected]>
* doc/sed-in.texi: Make the description of ^ and $ more precise.
* doc/sed.texi: Regenerate.
2008-06-04 Vladimir Marek <[email protected]>
* basicdefs.h: Don't hardcode usage of prototypes on SunStudio.
2008-05-15 Paolo Bonzini <[email protected]>
* autoboot.conf: Update for newer gnulib.
2008-05-15 Paolo Bonzini <[email protected]>
* bootstrap.sh.in: Define bool, true, false. Reported by
Jason Stover. Adjust for gnulib changes.
* bootstrap.sh: Regenerate.
2008-04-24 Paul Eggert <[email protected]>
* 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 <[email protected]>
* sed/compile.c (setup_replacement): Fix bug with \& in POSIX mode.
2008-01-16 Jim Meyering <[email protected]>
* sed/execute.c (open_next_file, get_backup_file_name): Avoid
warnings from gcc.
2008-01-16 Jim Meyering <[email protected]>
* sed/compile.c (snarf_char_class): Reverse order of conjuncts
so that "delim" is not used uninitialized.
2008-01-16 Jim Meyering <[email protected]>
* sed/utils.c (panic): Remove declaration of unused local, "fd".
2008-01-16 Jim Meyering <[email protected]>
* sed/execute.c (open_next_file, get_backup_file_name): Avoid
warnings from gcc. Avoid shadowing global "pipe".
2008-01-16 Jim Meyering <[email protected]>
* autoboot.conf (gnulib_modules): Add stat-macros and pathmax.
2007-10-25 Paolo Bonzini <[email protected]>
Mike Frysinger <[email protected]>
* 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 <[email protected]>
* sed/execute.c (open_next_file): Follow symlink here...
(closedown): ... not here.
2007-06-29 Paolo Bonzini <[email protected]>
* 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 <[email protected]> (tiny change)
* sed/compile.c (compile_program): Accept 0,/REGEXP/ address
specification only if --posix is not specified.
2007-02-05 Paolo Bonzini <[email protected]>
* testsuite/bug-regex27.c, testsuite/bug-regex28.c: New, from
glibc (written by Jakub Jelinek).
2007-01-26 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* sed/compile.c: Fix warnings.
* sed/execute.c: Fix warnings.
2006-12-22 Bruno Haible <[email protected]>
* 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 <[email protected]>
* sed/mbcs.c: Include string.h (reported by Henning Nielsen Lund).
* sed/fmt.c: Likewise.
* sed/regexp.c: Likewise.
2006-12-18 Paolo Bonzini <[email protected]>
* sed/execute.c (closedown): Remove dead code.
2006-12-17 Paolo Bonzini <[email protected]>
* sed/utils.c: Include limits.h.
2006-12-16 Paolo Bonzini <[email protected]>
* doc/sed-in.texi: Document --follow-symlinks.
2006-12-15 Paolo Bonzini <[email protected]>
* sed/regexp.c: Disable all extensions on --posix.
2006-09-24 Paolo Bonzini <[email protected]>
* sed/execute.c: Support ACLs.
* lib/utils.c: Move...
* sed/utils.c: ... here, and remove xmalloc.
2006-08-21 Paolo Bonzini <[email protected]>
* sed/regexp.c: Accept NUL bytes for `.'. Accept 'a\(b' in
POSIXLY_CORRECT/POSIXLY_BASIC posixicity.
2006-08-03 Paolo Bonzini <[email protected]>
Revert this part of the previous change:
2006-08-03 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
Corinna Vinschen <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* bootstrap.sh.in: Add a few autoconfy tests.
* Makefile.am: Update distributed bootstrap.sh.
2006-05-15 Hans-Bernhard Broeker <[email protected]>
* sed/basicdefs.h (OB_MALLOC): Turn VCAST into void * cast.
2006-02-03 Paolo Bonzini <[email protected]>
* sed/compile.c (compile_program) <case 'y'>: Pass false to match_slash.
2005-09-07 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* configure.ac: Use a cache variable for the libcP test.
* configure: Regenerate.
2005-05-16 Eero Hakkinen <[email protected]>
* sed/compile.c (snarf_char_class): Fix handling of
[^]xyz].
2005-04-04 Paolo Bonzini <[email protected]>
* sed/execute.c (process_files): Do not add a default
command-line in in-place editing mode.
2005-02-10 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* sed/regexp.c: Fix off-by-one error in the "invalid reference
to subexpression" message. Debian bug 294339.
2005-02-08 Paolo Bonzini <[email protected]>
* lib/obstack.h: include config.h.
2005-02-01 Paolo Bonzini <[email protected]>
* doc/Makefile.am: Don't enable MAKEINFO_HTML and TEXI2HTML_HTML
rules unless BUILD_HTML.
2005-01-25 Paolo Bonzini <[email protected]>
* sed/regexp.c: Fix building on GCC 2.95 and earlier.
2004-12-26 Paolo Bonzini <[email protected]>
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 <[email protected]>
* BUGS: Add section about [a-z] matching uppercase characters,
and other locale issues.
* doc/sed-in.texi [!PERL]: Likewise.
2004-11-15 Paolo Bonzini <[email protected]>
* 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 <[email protected]>
* tst-rxspecer.c: Do not mix instructions and
declarations.
* basicdefs.h: Include locale.h before #defining
gettext, to avoid breakage under Solaris.
* sed/sed.c: do not include locale.h.
2004-11-03 Paolo Bonzini <[email protected]>
* bug-regex11.c: Improve portability.
* bug-regex12.c: Improve portability.
* bug-regex13.c: Improve portability.
* bug-regex14.c: Improve portability.
* bug-regex21.c: Improve portability.
* bug-regex9.c: Improve portability.
* tst-boost.c: Improve portability.
* tst-pcre.c: Improve portability.
* tst-regex.c: Improve portability.
* tst-rxspencer.c: Improve portability.
2004-10-08 Paolo Bonzini <[email protected]>
* lib/utils.c (utils_id_s): Renamed to open_files.
(struct id): Renamed to struct open_file.
2004-10-08 Jakub Jelinek <[email protected]>
* testsuite/Makefile.tests (bug-regex*, run-tests,
run-ptests): Use $(SED).
(version): Likewise; prepend $(SED) invocation with $(SEDENV).
2004-08-16 Paolo Bonzini <[email protected]>
*** Version 4.1.2 released.
2004-08-06 Paolo Bonzini <[email protected]>
* sed/compile.c (bad_command): Fix off-by-one error.
(snarf_char_class): Fix problem with [.....[] (i.e.
last char in class is a bracket.
2004-06-30 Paolo Bonzini <[email protected]>
*** Version 4.1.1 released.
2004-06-29 Paolo Bonzini <[email protected]>
* sed/compile.c (mark_subst_opts): Return int.
* sed/execute.c (open_next_file): Fix uninitialized
variable.
2004-06-10 Paolo Bonzini <[email protected]>
*** Version 4.1 released.
2004-03-25 Paolo Bonzini <[email protected]>
* lib/obstack.h: Get current version.
2004-03-13 Paolo Bonzini <[email protected]>
Exit as soon as possible on an I/O error, and with
a better error message.
* lib/utils.c (ck_mkstemp, ck_rename, ck_getline): New
functions. Save temporary files into utils_id_s.
(struct id): Add a field named temp.
(ck_fopen): Init the new temp field of struct id.
(panic): Unlink temporary files before exiting.
* sed/execute.c (read_file_line): Use ck_getline.
(closedown): Use ck_rename.
(open_next_file): Use ck_mkstemp.
2004-01-20 Paolo Bonzini <[email protected]>
* sed/sed.h (enum addr_state): New definition.
(enum addr_type): Remove ADDR_IS_NUM2.
(struct sed_cmd): Replace a1_matched with range_state.
* sed/compile.c (next_cmd_entry): Use range_state.
(compile_program): Death to ADDR_IS_NUM2. Compile
N,Mp as Np if N>=M.
* sed/execute.c (match_address_p): Rewritten. Handle
ADDR_IS_NUM here.
(match_an_address_p): Suit to new match_address_p.
(execute_program): Adjust to use range_state in `c'.
Handle addr_bang here.
(reset_addresses): Use range_state.
(struct input): New field "reset_at_next_file".
(read_pattern_space): Use it instead of "separate_files".
(process_files): Initialize it.
2004-01-17 Paolo Bonzini <[email protected]>
* sed/sed.h: Do not include wchar.h and wctype.h, and do
not include the alloca stuff.
* basicdefs.h: Move all that here.
2004-01-15 Paolo Bonzini <[email protected]>
* sed/regexp.c [REG_PERL]: Use REG_STARTEND instead of regexec2.
2004-01-09 Paul Eggert <[email protected]>
Paolo Bonzini <[email protected]>
* sed/sed.h (posixicity): New variable, replaces POSIXLY_CORRECT.
* sed/sed.c (main): Set it.
* sed/compile.c: Use it instead of POSIXLY_CORRECT.
* sed/execute.c: Use it instead of POSIXLY_CORRECT.
* doc/sed-in.texi: Document it and --posix.
2004-01-05 Paul Eggert <[email protected]>