This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: press for cygwin
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/