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


Message #10 received at 79414-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: shi xuantong <sxt1001 <at> outlook.com>
Cc: 79414-done <at> debbugs.gnu.org
Subject: Re: bug#79414: the ratio output by "gzip -l" is less than 0
Date: Tue, 9 Sep 2025 11:05:03 -0700
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.




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.