libzip: libzip-discuss: Re: patch to fix leak and binary mode on windows

Thread

Thread Index

Message

From: Thomas Klausner <tk%giga.or.at@localhost>
To: Pierre Joye <pierre.php%gmail.com@localhost>
Subject: Re: patch to fix leak and binary mode on windows
Date: Tue, 9 Feb 2010 15:07:48 +0100

On Tue, Feb 09, 2010 at 02:47:09PM +0100, Pierre Joye wrote:
> It depends on the context default. The patch forces the mode to binary
> safe, making this code setting independent.

What contexts are there?
And why does it ignore fdopen's "b"?
Doesn't sound very reliable :)

Anyway, I've added the _setmode in #ifdef _WIN32 now. Thanks!
 Thomas

Made by MHonArc.