[Zlib-devel] "wb6 " as fopen mode in minigzip.c

Gilles Vollant info at winimage.com
Sun Feb 6 15:54:07 EST 2005


Ok, can you remove just the space ? Replace "wb6 " by "wb6" solved my
problem 

-----Original Message-----
From: Mark Adler [mailto:madler at alumni.caltech.edu] 
Sent: Sunday, February 06, 2005 9:26 PM
To: zlib-devel at zlib.net
Subject: Re: [Zlib-devel] "wb6 " as fopen mode in minigzip.c

On Feb 5, 2005, at 9:39 PM, Gilles Vollant wrote:
> using "wb", all is perfect

Gilles,

Well, not quite.  minigzip options won't work if you do that.

> I found wb6 in no fopen documentation, and this make runtime error 
> with VC++2005...

I can't quite figure out how this error is occurring.  outmode is used only
by gzdopen() or gzopen(), both of which call gz_open() in gzio.c which
removes the "6" before passing the mode onto fopen() or fdopen(). 
  Maybe it's the space in the file mode that's messing up VC++?

mark






More information about the Zlib-devel mailing list