Author eric.araujo
Recipients docs@python, eric.araujo, ezio.melotti, nicolasg
Date 2011-12-10.15:52:16
SpamBayes Score 2.02539e-06
Marked as misclassified No
Message-id <1323532337.3.0.144712810592.issue13525@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the detailed bug report.  I thought the normalization performed by the codec lookup system would convert 'cp-1252' to 'cp1252' (its “real” name, i.e. the name of the module implementing the codec), but it does not.  I’m +1 to removing the hyphen in the example, then.

> Python raises the following exception:
> SyntaxError: encoding problem: with BOM
I reproduced this and it’s surprising.  Maybe there is a bug with error reporting here.

> Alternatively a totally other example as for Python 2.7 would be nice too
This file has seen different changes in 2.7 and 3.2, given that the default encoding is different in 3.x.  I’ll check the history and upload a patch here to get your feedback.
History
Date User Action Args
2011-12-10 15:52:17eric.araujosetrecipients: + eric.araujo, ezio.melotti, nicolasg, docs@python
2011-12-10 15:52:17eric.araujosetmessageid: <1323532337.3.0.144712810592.issue13525@psf.upfronthosting.co.za>
2011-12-10 15:52:16eric.araujolinkissue13525 messages
2011-12-10 15:52:16eric.araujocreate