Jason R. Coombs <jar...@jaraco.com> added the comment:

I'm only aware of one tool that writes .pth files, and that's setuptools, and 
it always writes ASCII (assuming package names are ASCII), so any encoding 
handling should be fine there.

> We could add a handler for UnicodeDecodeError that falls back on utf-8?

Yes, reasonable, but maybe we should consider instead _preferring_ UTF-8 and 
fall back to default encodings. That would be my preference.

----------

_______________________________________
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