Skip to content

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 <storchaka@gmail.com>
@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