|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#6657: closed (mkstemp on cygwin creates binary files) |
Date: | Tue, 13 Sep 2011 12:10:02 +0000 |
Your message dated Tue, 13 Sep 2011 14:04:31 +0200 with message-id <address@hidden> and subject line Re: bug#6657: mkstemp on cygwin creates binary files has caused the debbugs.gnu.org bug report #6657, regarding mkstemp on cygwin creates binary files to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 6657: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6657 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---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: User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5 http://www.cygwin.com/ml/cygwin-patches/2006-q2/msg00013.htmlI 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
--- End Message ---
--- Begin Message ---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".
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |