Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compression > #444

Re: unpacking .z files

From glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups comp.compression
Subject Re: unpacking .z files
Date 2011-07-20 16:39 +0000
Organization Aioe.org NNTP Server
Message-ID <j070ce$fb$1@speranza.aioe.org> (permalink)
References <919d9353-8984-4094-acff-7808d2a139ff@g9g2000yqb.googlegroups.com> <2011071923330448158-madler@alumnicaltechedu> <0de1fc2d-33ed-46ce-bd1d-de4a9af5e738@g16g2000yqg.googlegroups.com>

Show all headers | View raw


sblinkhorn <steve@prd.co.uk> wrote:
> On Jul 20, 7:33 am, Mark Adler <mad...@alumni.caltech.edu> wrote:

(snip)
>> What happens when you try?  What are the first two 
>> bytes of an example .z file?


> Thanks for picking this up.

> The error message is, e.g. :

> gzip: bn1out.z: not in gzip format

> od -c reports, e.g.:

> 0001540  226 262   |   h   s   r   n 261   h   c   # 031   _  \r 367
> Z
> 0001560    d 207 307 364   i   a 271 305 300 210 370 030 361   $ 024
> 225
> 0001600  006     313   L   e   J   C 346 240 020     202 270 342
> \0   !

What is od -c (or od -x) output of the first bytes?  

Also, use the file command which usually identifies the magic
number at the beginning.

gzip is open source, so you can just look at the code.

-- glen

Back to comp.compression | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

unpacking .z files sblinkhorn <steve@prd.co.uk> - 2011-07-19 05:02 -0700
  Re: unpacking .z files Mark Adler <madler@alumni.caltech.edu> - 2011-07-19 23:33 -0700
    Re: unpacking .z files sblinkhorn <steve@prd.co.uk> - 2011-07-20 04:11 -0700
      Re: unpacking .z files glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2011-07-20 16:39 +0000
      Re: unpacking .z files Mark Adler <madler@alumni.caltech.edu> - 2011-07-22 22:09 -0700
        Re: unpacking .z files sblinkhorn <steve@prd.co.uk> - 2011-07-28 11:15 -0700
        Re: unpacking .z files sblinkhorn <steve@prd.co.uk> - 2011-07-29 02:53 -0700
          Re: unpacking .z files Mark Adler <madler@alumni.caltech.edu> - 2011-07-29 08:21 -0700
          Re: unpacking .z files Mark Adler <madler@alumni.caltech.edu> - 2011-07-31 08:21 -0700

csiph-web