[Zlib-devel] zlib gzopen_w function added

Jan Seiffert kaffeemonster at googlemail.com
Sat Mar 17 13:10:23 EDT 2012


2012/3/17  <jbowler at acm.org>:
[snip]
> The only thing I would suggest is that you might want to do what windows.h does and throw a big #define switch to select the wide version of gzopen if the wide APIs are selected by the app.  (Most apps never call fooA or fooW, they just call foo and get the right A or W interface.)
>

Yeah, that would be the "expected way", but i think that would break
backward compatibility, because zlib never contained a *W func, so all
programs up to this point expect the char *-only interface for the
base func name, so may contain code to convert the file name down to
char *.
Such an auto switch interface with #ifdef UNICODE would have to be
included under a new name.

> John Bowler <jbowler at acm.org>
>

Greetings
Jan

-- 
˙qɐɥ ʇɟnɐʞǝƃ ʎɐqǝ ıǝq ɹnʇɐʇsɐʇ ǝuıǝ ɹıɯ ɥɔı sɐp lɐɯ ǝʇzʇǝl sɐp ʇsı sɐp
'ʇɯɯɐpɹǝʌ




More information about the Zlib-devel mailing list