gh-63161: Fix PEP 263 support (GH-139481)
* 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.
S
Serhiy Storchaka committed
5c942f11cdf5f9d7313200983fa0c58b3bc670a2
Parent: d0b18b1
Committed by GitHub <noreply@github.com>
on 10/10/2025, 12:51:19 PM