Subject: bin/36268: NetBSD gzip error message mismatch with GNU gzip
To: None <,>
From: None <>
List: netbsd-bugs
Date: 05/03/2007 12:40:01
>Number:         36268
>Category:       bin
>Synopsis:       NetBSD gzip error message mismatch with GNU gzip
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 03 12:40:01 +0000 2007
>Originator:     Giles Lean
>Release:        NetBSD 4.0_BETA2
System: NetBSD 4.0_BETA2 NetBSD 4.0_BETA2 (AMETHYST) #8: Tue May 1 22:23:20 EST 2007 i386
Architecture: i386
Machine: i386
When NetBSD's gzip sees premature end of file on standard input it
emits a slightly different message to the one GNU gzip prints.

This difference broke a test case in GNU tar 1.16.

GNU gzip prints a blank line, and does not surround (stdin) with
$ ./gzip --version
gzip 1.3.9
Copyright (C) 2006 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.
$ ./gzip < /dev/null > /dev/null
$ ./gzip -d < /dev/null > /dev/null

gzip: stdin: unexpected end of file
$ /usr/bin/gzip --version
NetBSD gzip 20060927
$ /usr/bin/gzip -d < /dev/null > /dev/null
gzip: (stdin): unexpected end of file


 	Built from 2007-04-29 source.