Re: [PATCH v3 3/3] mingw: replace isatty() hack

2017-01-18 Thread Johannes Schindelin
Hi, On Fri, 23 Dec 2016, Johannes Schindelin wrote: > + /* > + * Use stock dup2() to re-bind fd to the new handle. Note that > + * this will implicitly close(1) and close both fd=1 and the > + * originally associated handle. It will open a new fd=1 and > + * call Duplica

[PATCH v3 3/3] mingw: replace isatty() hack

2016-12-22 Thread Johannes Schindelin
From: Jeff Hostetler Git for Windows has carried a patch that depended on internals of MSVC runtime, but it does not work correctly with recent MSVC runtime. A replacement was written originally for compiling with VC++. The patch in this message is a backport of that replacement, and it also fixe