GNU bug report logs - #6657
mkstemp on cygwin creates binary files

Previous Next

Package: coreutils;

Reported by: Paolo Bonzini <bonzini <at> gnu.org>

Date: Fri, 16 Jul 2010 20:40:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paolo Bonzini <bonzini <at> gnu.org>
To: Eric Blake <eblake <at> redhat.com>
Cc: 6657 <at> debbugs.gnu.org, Paul Eggert <eggert <at> CS.UCLA.EDU>
Subject: bug#6657: mkstemp on cygwin creates binary files
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




This bug report was last modified 13 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.