gsed: update to 4.9.

* Noteworthy changes in release 4.9 (2022-11-06) [stable]

** Bug fixes

  'sed --follow-symlinks -i' no longer loops forever when its operand
  is a symbolic link cycle.
  [bug introduced in sed 4.2]

  a program with an execution line longer than 2GB can no longer trigger
  an out-of-bounds memory write.

  using the R command to read an input line of length longer than 2GB
  can no longer trigger an out-of-bounds memory read.

  In locales using UTF-8 encoding, the regular expression '.' no
  longer sometimes fails to match Unicode characters U+D400 through
  U+D7FF (some Hangul Syllables, and Hangul Jamo Extended-B) and
  Unicode characters U+108000 through U+10FFFF (half of Supplemental
  Private Use Area plane B).
  [bug introduced in sed 4.8]

  I/O errors involving temp files no longer confuse sed into using a
  FILE * pointer after fclosing it, which has undefined behavior in C.

** New Features

  The 'r' command now accepts address 0, allowing inserting a file before
  the first line.

** Changes in behavior

   Sed now prints the less-surprising variant in a corner case of
   POSIX-unspecified behavior.  Before, this would print "n".
   Now, it prints "X":

    printf n | sed 'sn\nnXn'; echo
This commit is contained in:
wiz 2022-11-16 10:41:36 +00:00
parent ceb96a9b89
commit ed1239179a
3 changed files with 8 additions and 8 deletions

View file

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.59 2022/06/28 11:36:10 wiz Exp $
# $NetBSD: Makefile,v 1.60 2022/11/16 10:41:36 wiz Exp $
DISTNAME= sed-4.8
DISTNAME= sed-4.9
PKGNAME= g${DISTNAME}
PKGREVISION= 2
CATEGORIES= textproc editors
MASTER_SITES= ${MASTER_SITE_GNU:=sed/}
EXTRACT_SUFX= .tar.xz

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.17 2017/01/16 11:45:14 wiz Exp $
@comment $NetBSD: PLIST,v 1.18 2022/11/16 10:41:36 wiz Exp $
bin/gsed
gnu/bin/sed
gnu/man/man1/sed.1
@ -26,6 +26,7 @@ share/locale/hu/LC_MESSAGES/sed.mo
share/locale/id/LC_MESSAGES/sed.mo
share/locale/it/LC_MESSAGES/sed.mo
share/locale/ja/LC_MESSAGES/sed.mo
share/locale/ka/LC_MESSAGES/sed.mo
share/locale/ko/LC_MESSAGES/sed.mo
share/locale/nb/LC_MESSAGES/sed.mo
share/locale/nl/LC_MESSAGES/sed.mo

View file

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.29 2021/10/26 11:21:55 nia Exp $
$NetBSD: distinfo,v 1.30 2022/11/16 10:41:36 wiz Exp $
BLAKE2s (sed-4.8.tar.xz) = 91f067d65bd8eea8aa0639e7382937c0057f027672114132e2aa2287de02509d
SHA512 (sed-4.8.tar.xz) = 7de25d9bc2981c63321c2223f3fbcab61d7b0df4fcf7d4394b72400b91993e1288d8bf53948ed5fffcf5a98c75265726a68ad4fb98e1d571bf768603a108c1c8
Size (sed-4.8.tar.xz) = 1348048 bytes
BLAKE2s (sed-4.9.tar.xz) = 106e94f33309ff895f952e9200ab27817004f10fae357ad3a6d952f44932b312
SHA512 (sed-4.9.tar.xz) = 36157a4b4a2430cf421b7bd07f1675d680d9f1616be96cf6ad6ee74a9ec0fe695f8d0b1e1f0b008bbb33cc7fcde5e1c456359bbbc63f8aebdd4fedc3982cf6dc
Size (sed-4.9.tar.xz) = 1397092 bytes