diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-09-24 08:01:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 08:01:37 (GMT) |
commit | e2f710792b0418b8ca1ca3b8cdf39588c7268495 (patch) | |
tree | 5fa743b6be184b1384cea36bc58e591b4568f52e /Tools/ssl | |
parent | 3c83f9958c14cd62ad8951c53536f7788745b0ba (diff) | |
download | cpython-e2f710792b0418b8ca1ca3b8cdf39588c7268495.zip cpython-e2f710792b0418b8ca1ca3b8cdf39588c7268495.tar.gz cpython-e2f710792b0418b8ca1ca3b8cdf39588c7268495.tar.bz2 |
gh-124188: Fix PyErr_ProgramTextObject() (GH-124189)
* Detect source file encoding.
* Use the "replace" error handler even for UTF-8 (default) encoding.
* Remove the BOM.
* Fix detection of too long lines if they contain NUL.
* Return the head rather than the tail for truncated long lines.
Diffstat (limited to 'Tools/ssl')
0 files changed, 0 insertions, 0 deletions