mirror of
https://github.com/python/cpython.git
synced 2026-05-08 05:32:01 -04:00
03ae82d0d3
* 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 e2f710792b)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miscellaneous source files for the main Python shared library