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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paolo Bonzini <bonzini <at> gnu.org>
Subject: bug#6657: closed (Re: bug#6657: mkstemp on cygwin creates binary
 files)
Date: Tue, 13 Sep 2011 12:10:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#6657: mkstemp on cygwin creates binary files

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 6657 <at> debbugs.gnu.org.

-- 
6657: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6657
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jim Meyering <jim <at> meyering.net>
To: Paolo Bonzini <bonzini <at> gnu.org>
Cc: 6657-done <at> debbugs.gnu.org
Subject: Re: bug#6657: mkstemp on cygwin creates binary files
Date: Tue, 13 Sep 2011 14:04:31 +0200
tags 6657 notabug
thanks

Paolo Bonzini wrote:
> I recently got by private email a report that "sed -i" changed the
> line endings of the file to bare linefeeds on cygwin.  The reason for
> this is that mkstemp on cygwin hardcodes the flags to O_EXCL|O_BINARY:
>
> http://www.cygwin.com/ml/cygwin-patches/2006-q2/msg00013.html
>
> I fixed it by using instead mkostemp(template, 0).  From a quick "git
> grep", it seems like sort and tac are affected by the bug in
> coreutils.

Thanks for the heads up.
This turned out not to be a problem with coreutils,
so I'm marking this as "done".

[Message part 3 (message/rfc822, inline)]
From: Paolo Bonzini <bonzini <at> gnu.org>
To: bug-coreutils <at> gnu.org
Subject: mkstemp on cygwin creates binary files
Date: Fri, 16 Jul 2010 22:27:18 +0200
I recently got by private email a report that "sed -i" changed the line 
endings of the file to bare linefeeds on cygwin.  The reason for this is 
that mkstemp on cygwin hardcodes the flags to O_EXCL|O_BINARY:

http://www.cygwin.com/ml/cygwin-patches/2006-q2/msg00013.html

I fixed it by using instead mkostemp(template, 0).  From a quick "git 
grep", it seems like sort and tac are affected by the bug in coreutils.

Thanks!

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.