After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 499958 - file size displayed incorrectly on .Z file
file size displayed incorrectly on .Z file
Status: RESOLVED FIXED
Product: file-roller
Classification: Applications
Component: general
2.20.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
file-roller-maint
Depends on:
Blocks:
 
 
Reported: 2007-11-27 12:47 UTC by Pedro Villavicencio
Modified: 2007-12-30 11:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Pedro Villavicencio 2007-11-27 12:47:38 UTC
"Steps to reproduce:
1. download ftp://svr-ftp.eng.cam.ac.uk/pub/misc/love_C.ps.Z
2. open in file-roller
3. check the file size

Expected result:
    The actual file is about 320k.

Actual result:
    Displayed as about 17,000,000,000 GB

This seems to be a simple display problem, the file still extracts fine.
I am using 2.20.1-0ubuntu1 on gutsy."

"man gunzip says :

The uncompressed size is given as -1 for files not in gzip format, such as compressed .Z files. To get the uncompressed size for such a file, you can use:
                  zcat file.Z | wc -c

as the .Z files in in compressed format (using compress command), it is normal that gunzip -l reports -1 as uncompressed size

the reported size by fileroller of 17179869184 GB is = 2^34 GB or 2^64 bytes, so maybe the -1 is translated to an unsigned max value in fileroller ?

It would probably be better to report "unknown" in stead of an incorrect number?"

http://launchpadlibrarian.net/10552010/Screenshot-love_C.ps.Z%20.png
Comment 1 Pedro Villavicencio 2007-11-27 12:48:01 UTC
That report has been filled here: https://bugs.launchpad.net/ubuntu/+source/file-roller/+bug/164988
Comment 2 Paolo Bacchilega 2007-12-30 11:06:08 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.