grep utils: Update from version 2.12 to 2.14
authorJohn Marino <draco@marino.st>
Tue, 23 Apr 2013 17:04:18 +0000 (19:04 +0200)
committerJohn Marino <draco@marino.st>
Tue, 23 Apr 2013 17:54:00 +0000 (19:54 +0200)
commit6aaf5a41d7264a96eb9e0aeedda0f4d3563aedb1
treea95f06b93f044bf3edc9d19d9603dd9d38992b51
parentb0d125bfe45326a9e897ab7687abb5ce4c41d8a1
grep utils: Update from version 2.12 to 2.14

=== 2.14 Bug fixes ===
* grep -i '^$' could exit 0 (i.e., report a match) in a multi-byte locale,
  even though there was no match, and the command generated no output.
  E.g., seq 2 | LC_ALL=en_US.utf8 grep -il '^$' would mistakenly print
  "(standard input)".  Related, seq 9 | LC_ALL=en_US.utf8 grep -in '^$'
  would print "2:4:6:8:10:12:14:16" and exit 0.  Now it prints nothing
  and exits with status of 1.  [bug introduced in grep-2.6]
* 'grep' no longer falsely reports text files as being binary on file
  systems that compress contents or that store tiny contents in metadata.

=== 2.13 Bug fixes  ===
* grep -i, in a multi-byte locale, when matching a line containing a character
  like the UTF-8 Turkish I-with-dot (U+0130) (whose lower-case representation
  occupies fewer bytes), would print an incomplete output line.
  Similarly, with a matched line containing a character (e.g., the Latin
  capital I in a Turkish UTF-8 locale), where the lower-case representation
  occupies more bytes, grep could print garbage.
  [bug introduced in grep-2.6]
* --include and --exclude can again be combined, and again apply to
  the command line, e.g., "grep --include='*.[ch]' --exclude='system.h'
  PATTERN *" again reads all *.c and *.h files except for system.h.
  [bug introduced in grep-2.6]

=== New 2.13 features ===
* 'grep' without -z now treats a sparse file as binary, if it can
  easily determine that the file is sparse.
contrib/grep/README.DELETED
contrib/grep/README.DRAGONFLY
contrib/grep/lib/hard-locale.c [deleted file]
contrib/grep/lib/hard-locale.h [deleted file]
contrib/grep/lib/strcasecmp.c [deleted file]
contrib/grep/lib/strncasecmp.c [deleted file]
gnu/usr.bin/grep/grep/grep.1
gnu/usr.bin/grep/libgreputils/Makefile
gnu/usr.bin/grep/libgreputils/alloca.h
gnu/usr.bin/grep/libgreputils/config.h
gnu/usr.bin/grep/libgreputils/sys/stat.h [new file with mode: 0644]