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 methane
Recipients methane
Date 2021-02-13.08:53:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613206406.27.0.848192620201.issue43214@roundup.psfhosted.org>
In-reply-to
Content
https://github.com/python/cpython/blob/4230bd52e3f9f289f02e41ab17a95f50ed4db5a6/Lib/site.py#L160

```
        f = io.TextIOWrapper(io.open_code(fullname))
```

When default text encoding is not UTF-8 and pth file contains non-ASCII character, it will raise UnicodeDecodeError.
History
Date User Action Args
2021-02-13 08:53:26methanesetrecipients: + methane
2021-02-13 08:53:26methanesetmessageid: <1613206406.27.0.848192620201.issue43214@roundup.psfhosted.org>
2021-02-13 08:53:25methanelinkissue43214 messages
2021-02-13 08:53:25methanecreate