[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6657: mkstemp on cygwin creates binary files
From: |
Paul Eggert |
Subject: |
bug#6657: mkstemp on cygwin creates binary files |
Date: |
Fri, 16 Jul 2010 14:47:15 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100527 Thunderbird/3.0.5 |
On 07/16/10 13:27, Paolo Bonzini wrote:
> 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.
tac access the temp file in binary mode, so there's no problem there.
I don't see the problem with 'sort' offhand. Why would the user care whether
line endings in sort's temp files are \r\n or \n? Using binary mode is a
bit faster and more reliable, surely.
Or is there some problem if the file descriptor is created with O_BINARY
and then fdopen is called with "w" (and not "wb")? I guess "sort" does
that on Cygwin now.
- bug#6657: mkstemp on cygwin creates binary files, Paolo Bonzini, 2010/07/16
- bug#6657: mkstemp on cygwin creates binary files,
Paul Eggert <=
- bug#6657: mkstemp on cygwin creates binary files, Paolo Bonzini, 2010/07/17
- bug#6657: mkstemp on cygwin creates binary files, Eric Blake, 2010/07/17
- bug#6657: mkstemp on cygwin creates binary files, Paolo Bonzini, 2010/07/18
- bug#6657: mkstemp on cygwin creates binary files, Eric Blake, 2010/07/19
- bug#6657: mkstemp on cygwin creates binary files, Paolo Bonzini, 2010/07/19
- bug#6657: mkstemp on cygwin creates binary files, Eric Blake, 2010/07/19
- bug#6657: mkstemp on cygwin creates binary files, Paolo Bonzini, 2010/07/19
- bug#6657: mkstemp on cygwin creates binary files, Eric Blake, 2010/07/19