KEMBAR78
[3.13] gh-124188: Fix PyErr_ProgramTextObject() (GH-124189) by miss-islington · Pull Request #124423 · python/cpython · GitHub
Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 24, 2024

  • 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.
    (cherry picked from commit e2f7107)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

* 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.
(cherry picked from commit e2f7107)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka serhiy-storchaka merged commit 03ae82d into python:3.13 Oct 7, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants