bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gzip -l (--list) incorrect uncompressed size displayed


From: Pete Lancashire
Subject: gzip -l (--list) incorrect uncompressed size displayed
Date: Thu, 27 Sep 2007 09:23:48 -0700 (PDT)
User-agent: SquirrelMail/1.4.7-4.fc4

Hello,

The system, version etc

# cat /proc/version
Linux version 2.6.9-42.0.3.ELsmp (address@hidden) (gcc version 3.4.6
20060404 (Red Hat 3.4.6-3)) #1 SMP Fri Oct 6 06:21:39 CDT 2006

# /usr/local/tmp/gzip-1.3.12/gzip --version
gzip 1.3.12
Copyright (C) 2007 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 <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.

# gcc --version
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


example uncompressed files
(commas added for readability)

# ls -l sr3.data[12]
-rw-r-----  1 1007 1001 20,971,528,192 Sep  2 03:55 sr3.data1
-rw-r-----  1 1007 1001 20,971,528,192 Sep  2 04:43 sr3.data2

# /usr/local/tmp/gzip-1.3.12/gzip --verbose sr3.data[12]
sr3.data1:       90.5% -- replaced with sr3.data1.gz
sr3.data2:       91.5% -- replaced with sr3.data2.gz

# ls -l sr3.data[12].gz
-rw-r-----  1 1007 1001 1,990,844,425 Sep 27 09:04 sr3.data1.gz
-rw-r-----  1 1007 1001 1,792,223,940 Sep 27  2007 sr3.data2.gz

and the error ...

# /usr/local/tmp/gzip-1.3.12/gzip --list sr3.data[12].gz
         compressed        uncompressed  ratio uncompressed_name
         1990844425          3791659008  47.5% sr3.data1
                    error -> ^^^^^^^^^^

         1792223940          3791659008  52.7% sr3.data2
                             ^^^^^^^^^^

         3783068365          7583318016  50.1% (totals)

-pete







reply via email to

[Prev in Thread] Current Thread [Next in Thread]