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 amaury.forgeotdarc, ggenellina
Date 2008-12-31.15:32:20
SpamBayes Score 9.75304e-07
Marked as misclassified No
Message-id <1230737541.69.0.666670439587.issue4747@psf.upfronthosting.co.za>
In-reply-to
Content
This also happens if there is any kind of syntax error in the file: 
"SyntaxError: None" is printed without any other hint.

The (char*) filename passed to PyRun_AnyFile should be utf-8 encoded;
Otherwise the file cannot be re-opened.

Attached patch fixes both issues, please review.
It removes one occurrence of wcstombs in favor of the PyUnicode machinery.
History
Date User Action Args
2008-12-31 15:32:21amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, ggenellina
2008-12-31 15:32:21amaury.forgeotdarcsetmessageid: <1230737541.69.0.666670439587.issue4747@psf.upfronthosting.co.za>
2008-12-31 15:32:21amaury.forgeotdarclinkissue4747 messages
2008-12-31 15:32:20amaury.forgeotdarccreate