Eric Blake wrote: > On cygwin, native fcntl(F_DUPFD), dup, and dup2; and our > version of dup_cloexec, already copy the text/binary mode of the source. > So why not make mingw do the same, rather than blindly slamming to O_BINARY. > ... > Here's what I've tested on mingw and cygwin; now pushed.
Looks very fine. Thanks! Bruno