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 Trundle, benjamin.peterson, pitrou, r.david.murray, ron_adam, skrah, vstinner
Date 2010-12-23.17:26:42
SpamBayes Score 5.19953e-10
Marked as misclassified No
Message-id <1293125205.71.0.782264589112.issue9319@psf.upfronthosting.co.za>
In-reply-to
Content
p3k_i9313.diff is just a workaround, not the correct fix. The problem is that PyTokenizer_FindEncoding() doesn't get the filename.

I wrote tokenizer_encoding_filename.patch which add PyTokenizer_FindEncodingFilename() and patch import.c and traceback.c to pass the filename.

Hum, I'm not sure that my patch works if the locale encoding is not UTF-8: import.c manipulates path in the filesystem encoding, whereas PyTokenizer_FindEncodingFilename() expects UTF-8 filename.

See this patch as a draft, I will try to fix the encoding issue.
History
Date User Action Args
2010-12-23 17:26:46vstinnersetrecipients: + vstinner, pitrou, ron_adam, benjamin.peterson, r.david.murray, Trundle, skrah
2010-12-23 17:26:45vstinnersetmessageid: <1293125205.71.0.782264589112.issue9319@psf.upfronthosting.co.za>
2010-12-23 17:26:42vstinnerlinkissue9319 messages
2010-12-23 17:26:42vstinnercreate