Subject: bug#6657: mkstemp on cygwin creates binary files

From: Paolo Bonzini <[email-masked]>
Date: Sun, 18 Jul 2010 09:19:34 +0200

On 07/18/2010 01:54 AM, Eric Blake wrote:
> By the way, newer cygwin provides mkostemp() - did you only fix the
> problem for older cygwin that lacks mkostemp and thus gets the gnulib
> fallback that doesn't force binary?

mkostemp also forces binary?  That's a bug IMO, since the caller can 
tell Cygwin if it wants binary or text.

> And what's wrong with using
> setmode() (from<io.h>, or from gnulib's "binary-io.h") on the fd
> created by mkstemp() to ensure the desired mode, rather than having to
> use mkostemp?

I want the default type given by the mount point (using the mount type 
of /tmp is fine), can I get that?

Paolo