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


Groups > comp.compression > #444

Re: unpacking .z files

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups comp.compression
Subject Re: unpacking .z files
Date Wed, 20 Jul 2011 16:39:42 +0000 (UTC)
Organization Aioe.org NNTP Server
Lines 31
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>
NNTP-Posting-Host at58Zkm3aP29P25aCKhjBQ.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
User-Agent tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64))
X-Notice Filtered by postfilter v. 0.8.2
Xref x330-a1.tempe.blueboxinc.net comp.compression:444

Show key headers only | 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