[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2015-03-13 Thread Jean-Charles Lefebvre
Jean-Charles Lefebvre added the comment: Well, just in case, I've attached the patch to apply against 3.5.0a2. -- Added file: http://bugs.python.org/file38469/python-3.5.0a2-fdvalidation.patch ___ Python tracker <http://bugs.python.org/is

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2015-03-12 Thread Jean-Charles Lefebvre
Jean-Charles Lefebvre added the comment: Oops, mistyping, #ifdef test would be: #if defined(MS_WINDOWS) && defined(HAVE_FSTAT) && defined(_MSC_VER) && _MSC_VER >= 1700 && _MSC_VER < 1900 -- ___ Python track

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2015-03-12 Thread Jean-Charles Lefebvre
Jean-Charles Lefebvre added the comment: Hi all, a small update to confirm this issue with version 3.5.0a2 embedded in a native C++ GUI application, having everything built with VS2013 SP4. Same execution flow as described by Mateusz in msg198689. I've modified Python/pylifecycle.c