[issue21953] pythonrun.c does not check std streams the same as fileio.c

2014-07-11 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21953] pythonrun.c does not check std streams the same as fileio.c

2014-07-11 Thread Steve Dower
Steve Dower added the comment: This is definitely the same as #17797, so I'll close this as a dup. Over on that issue, it's confirmed as fixed in VC14 (and it is - I've checked). -- resolution: -> duplicate status: open -> closed ___ Python tracker

[issue21953] pythonrun.c does not check std streams the same as fileio.c

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: See also issues: - issue #17797: Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program - issue #18804: I proposed a similar change for other reasons. -- nosy: +haypo ___ Python tracker

[issue21953] pythonrun.c does not check std streams the same as fileio.c

2014-07-10 Thread Steve Dower
New submission from Steve Dower: In pythonrun.c, the is_valid_fd() function checks whether fileno(std*) are valid before attempting to create IO objects for them. However, the class created also checks using fstat(). In pythonw.exe built with VS 2013 (or 14, maybe 2012), the fstat() check fail