Ticket #2628 (new bug)
hIsTerminalDevice returns True for /dev/null (aka NUL) on Windows
| Reported by: | igloo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | _|_ |
| Component: | libraries/base | Version: | 6.8.3 |
| Keywords: | Cc: | ||
| Operating System: | Windows | Architecture: | x86 |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | 2228 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
