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 steve.dower
Recipients einaren, ezio.melotti, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2018-03-05.17:53:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520272403.19.0.467229070634.issue32921@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, it'll have significant side effects. The default file encoding on Windows is your configured code page (1252, in your case), and there's no good way around that default. The easiest immediate fix is to re-encode that file yourself.

Perhaps what we could do instead is allow the first line of a .pth file to be a coding comment? Then site.py can reopen the file with the specified encoding.

(FWIW, when I added the ._pth file, I explicitly made it UTF-8. But it had no history at that time so it was safe to do so.)
History
Date User Action Args
2018-03-05 17:53:23steve.dowersetrecipients: + steve.dower, paul.moore, vstinner, tim.golden, ezio.melotti, zach.ware, einaren
2018-03-05 17:53:23steve.dowersetmessageid: <1520272403.19.0.467229070634.issue32921@psf.upfronthosting.co.za>
2018-03-05 17:53:23steve.dowerlinkissue32921 messages
2018-03-05 17:53:23steve.dowercreate