summaryrefslogtreecommitdiffstats
path: root/Python/crossinterp.c
diff options
context:
space:
mode:
authorAlyssa Coghlan <ncoghlan@gmail.com>2024-05-24 14:29:19 (GMT)
committerGitHub <noreply@github.com>2024-05-24 14:29:19 (GMT)
commitbf5b6467f8cc06759f3396ab1a8ad64fe7d1db2e (patch)
tree671bc2596840f39650f579d8fd63bffdd8c93ca4 /Python/crossinterp.c
parent92fab3356f4c61d4c73606e4fae705c6d8f6213b (diff)
downloadcpython-bf5b6467f8cc06759f3396ab1a8ad64fe7d1db2e.zip
cpython-bf5b6467f8cc06759f3396ab1a8ad64fe7d1db2e.tar.gz
cpython-bf5b6467f8cc06759f3396ab1a8ad64fe7d1db2e.tar.bz2
GH-119496: accept UTF-8 BOM in .pth files (GH-119503)
`Out-File -Encoding utf8` and similar commands in Windows Powershell 5.1 emit UTF-8 with a BOM marker, which the regular `utf-8` codec decodes incorrectly. `utf-8-sig` accepts a BOM, but also works correctly without one. This change also makes .pth files match the way Python source files are handled. Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Diffstat (limited to 'Python/crossinterp.c')
0 files changed, 0 insertions, 0 deletions