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 vstinner
Recipients Daniel.Goertzen, amaury.forgeotdarc, atuining, belopolsky, flox, grahamd, pitrou, vstinner
Date 2011-05-01.23:46:17
SpamBayes Score 2.2257889e-06
Marked as misclassified No
Message-id <1304293578.32.0.794379613663.issue6501@psf.upfronthosting.co.za>
In-reply-to
Content
> Fatal Python error: Py_Initialize: can't initialize sys standard streams
> LookupError: unknown encoding: cp0

That's a bug in os.device_encoding(): os.device_encoding(sys.stdout.fileno()) should return None if the application has no console (if sys.stdout is not a Windows console stream).

Attached device_encoding.patch should fix this issue. (I didn't test the patch yet.)
History
Date User Action Args
2011-05-01 23:46:18vstinnersetrecipients: + vstinner, amaury.forgeotdarc, atuining, belopolsky, pitrou, grahamd, flox, Daniel.Goertzen
2011-05-01 23:46:18vstinnersetmessageid: <1304293578.32.0.794379613663.issue6501@psf.upfronthosting.co.za>
2011-05-01 23:46:17vstinnerlinkissue6501 messages
2011-05-01 23:46:17vstinnercreate