This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients David.Sankel, amaury.forgeotdarc, brian.curtin, christian.heimes, christoph, davidsarah, ezio.melotti, lemburg, mark, pitrou, ssbarnea, tim.golden, tzot, v+python, vstinner
Date 2011-01-10.11:50:02
SpamBayes Score 0.009349424
Marked as misclassified No
Message-id <1294660207.03.0.604298820061.issue1602@psf.upfronthosting.co.za>
In-reply-to
Content
The script unicode2.py uses the console STD_OUTPUT_HANDLE iff sys.stdout.fileno()==1.
But is it always the case? What about pythonw.exe? 
Also some applications may redirect fd=1: I'm sure that py.test does this http://pytest.org/capture.html#setting-capturing-methods-or-disabling-capturing and IIRC Apache also redirects file descriptors.
History
Date User Action Args
2011-01-10 11:50:07amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, lemburg, tzot, pitrou, vstinner, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, ssbarnea, brian.curtin, davidsarah, David.Sankel
2011-01-10 11:50:07amaury.forgeotdarcsetmessageid: <1294660207.03.0.604298820061.issue1602@psf.upfronthosting.co.za>
2011-01-10 11:50:02amaury.forgeotdarclinkissue1602 messages
2011-01-10 11:50:02amaury.forgeotdarccreate