Steve Dower <steve.do...@python.org> added the comment:

Can you save your file in gbk encoding? That will be an immediate fix.

I don't know that we can/should change the encoding we read without checking 
with everyone who writes out .pth files. (+Jason as a start here, but I suspect 
there are more tools that write them.)

We could add a handler for UnicodeDecodeError that falls back on utf-8? I think 
that's reasonable.

----------
nosy: +jason.coombs

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35131>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to