delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/03/12:36:11

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 3 Sep 2001 12:36:02 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: press for cygwin
Message-ID: <20010903123602.B2373@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3B939A12 DOT 5040009 AT ece DOT gatech DOT edu> <17B78BDF120BD411B70100500422FC6309E334 AT IIS000> <3B939A12 DOT 5040009 AT ece DOT gatech DOT edu> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20010903174134 DOT 02c8ae40 AT imap DOT local DOT mscha DOT com> <20010903120301 DOT A2259 AT redhat DOT com> <m3pu98z17o DOT fsf AT localhost DOT localdomain>
Mime-Version: 1.0
In-Reply-To: <m3pu98z17o.fsf@localhost.localdomain>
User-Agent: Mutt/1.3.21i

On Mon, Sep 03, 2001 at 06:30:19PM +0200, Andrew Markebo wrote:
>
>| I mentioned the magic number method.  That would actually work.  That is
>| why I suggested it.
>
>Just a thought, doesn't gzip and bzip2 have 'magic numbers' already?
>The first two bytes in the files is "BZ" or "GZ"? Hmm checked a
>bzip2-file, it has BZ in the beginning, couldn't see similar in
>gzip.. ahh well.. 

There is a program on UNIX called "file".  It is able to detect the
difference between bzip2 and gzip files just fine.

I am not advocating that we add our own magic numbers.  I do still want
to enable people who KNOW WHAT THEY ARE DOING to be able to uncompress
the files without resorting to setup.exe.  I am talking about using
an existing mechanism to detect the files.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019