[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6657: mkstemp on cygwin creates binary files

From: Paolo Bonzini
Subject: bug#6657: mkstemp on cygwin creates binary files
Date: Sun, 18 Jul 2010 09:19:34 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]