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 brett.cannon
Recipients brett.cannon, christian.heimes
Date 2008-08-19.01:44:28
SpamBayes Score 0.012465999
Marked as misclassified No
Message-id <1219110272.34.0.183498241034.issue3594@psf.upfronthosting.co.za>
In-reply-to
Content
Turns out that the NULL return value can signal an error that manifests
itself as SyntaxError("encoding problem: with BOM") thanks to the lack
of tok->filename being set in Parser/tokenizer.c:fp_setreadl() which is
called by check_coding_spec() and assumes that since tok->encoding was
never set (because fp_setreadl() returned an error value) that it had
something to do with the BOM.

The only reason this was found is because my bootstrapping of importlib
into Py3K, at some point, triggers a PyErr_Occurred() which finally
notices the error.
History
Date User Action Args
2008-08-19 01:44:32brett.cannonsetrecipients: + brett.cannon, christian.heimes
2008-08-19 01:44:32brett.cannonsetmessageid: <1219110272.34.0.183498241034.issue3594@psf.upfronthosting.co.za>
2008-08-19 01:44:30brett.cannonlinkissue3594 messages
2008-08-19 01:44:29brett.cannoncreate