GNU bug report logs - #79414
the ratio output by "gzip -l" is less than 0

Previous Next

Package: gzip;

Reported by: shi xuantong <sxt1001 <at> outlook.com>

Date: Tue, 9 Sep 2025 15:19:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Full log


View this message in rfc822 format

From: "Adler, Mark" <madler <at> alumni.caltech.edu>
To: "79414-done <at> debbugs.gnu.org" <79414-done <at> debbugs.gnu.org>
Cc: Paul Eggert <eggert <at> CS.UCLA.EDU>, shi xuantong <sxt1001 <at> outlook.com>
Subject: bug#79414: the ratio output by "gzip -l" is less than 0
Date: Tue, 9 Sep 2025 18:12:35 +0000
[Message part 1 (text/plain, inline)]
pigz reports "-inf%”. Alas, a lower-case “i”.

On Sep 9, 2025, at 11:05 AM, Paul Eggert <eggert <at> CS.UCLA.EDU> wrote:

A negative compression ratio is correct when gzip's compressed output is larger than its input.

Arguably gzip should output "-Inf%" when the input is empty and the compressed output is not. But that's a mere nicety.

[Message part 2 (text/html, inline)]

This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.