mirror of
https://github.com/python/cpython.git
synced 2026-01-27 05:05:50 +00:00
* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified. * Detect decoding error in comments for UTF-8 encoding. * Include the decoding error position for default encoding in SyntaxError. (cherry picked from commit 5c942f11cdf5f9d7313200983fa0c58b3bc670a2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>