hIsTerminalDevice returns True for /dev/null (aka NUL) on Windows
test 2228 is failing for me in an msys window on Windows:
-BlockBuffering Nothing
+LineBuffering
BlockBuffering Nothing
because isatty behaves unexpectedly on mingw:
#include <stdio.h>
#include <unistd.h>
int main(void) {
int i;
i = fileno(stdin);
printf("%d\n", i);
i = fileno(stdout);
printf("%d\n", i);
i = isatty(0);
printf("%d\n", i);
i = isatty(1);
printf("%d\n", i);
return 0;
}
$ ./w
0
1
0
0
$ ./w < /dev/null
0
1
64
0
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries/base |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |
Edited by Simon Marlow