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 serhiy.storchaka
Recipients Arfrever, benjamin.peterson, ezio.melotti, lemburg, loewis, serhiy.storchaka, terry.reedy
Date 2014-01-03.22:05:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1388786754.98.0.174385943735.issue18960@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch which fixes this issue (and related issues).

* Encoding declaration now detected in second line only if first line is spaces-only (this is needed for support -x option) or comment-only (needed for she-bang).

* Fixed support for -x option.

* PyTokenizer_FromString() no longer check encoding declaration in second line if it was found in first line.

* Fixed encoding detection in the tokenize module, in IDLE, in 2to3 and in the findnocoding script.
History
Date User Action Args
2014-01-03 22:05:55serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, loewis, terry.reedy, benjamin.peterson, ezio.melotti, Arfrever
2014-01-03 22:05:54serhiy.storchakasetmessageid: <1388786754.98.0.174385943735.issue18960@psf.upfronthosting.co.za>
2014-01-03 22:05:54serhiy.storchakalinkissue18960 messages
2014-01-03 22:05:54serhiy.storchakacreate