Re: [Mingw-w64-public] [PATCH v6] Make isatty Cygwin-compatible

2016-11-17 Thread Mihail Konev
On Fri, Nov 18, 2016 at 08:37:33AM +0500, Mihail Konev wrote: > > all: test > > a.exe: main.c > $(CC) -Wall -Wextra main.c > > test: a.exe > @echo > @echo " -- Test not a tty --" > @echo Sorry, forgot 'all: clean test'. But ran it manually prior anyway.

[Mingw-w64-public] [PATCH v6] Make isatty Cygwin-compatible

2016-11-17 Thread Mihail Konev
Before, isatty() was an alias for WinAPI _isatty(). This resulted in wrong result for mintty. Implement pipe name check in crt isatty(). Signed-off-by: Mihail Konev Moved-from: https://github.com/Alexpux/mingw-w64/pull/3 Reference: https://cygwin.com/ml/cygwin-developers/2016-11/msg2.html --