[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program
eaducac added the comment: Hi all, I ran into this problem myself today with 3.3.2 and I thought I'd provide some more detail on what's going on. As has been described, prior to VC11, fileno(stdin) returned -2 in applications with no console, so is_valid_fd() was properly rejecting it and the