Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.12] gh-124188: Fix PyErr_ProgramTextObject() (GH-124189) #124426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka 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)

* 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 <[email protected]>
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) September 24, 2024 08:37
@serhiy-storchaka serhiy-storchaka merged commit 1854224 into python:3.12 Sep 24, 2024
29 checks passed
@serhiy-storchaka serhiy-storchaka deleted the backport-e2f7107-3.12 branch October 21, 2024 13:41
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.

1 participant