Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.13] GH-119496: accept UTF-8 BOM in .pth files (GH-119503)#119508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ncoghlan merged 1 commit intopython:3.13frommiss-islington:backport-bf5b646-3.13
May 24, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedMay 24, 2024
edited by bedevere-appbot
Loading

Out-File -Encoding utf8 and similar commands in Windows Powershell 5.1 emit
UTF-8 with a BOM marker, which the regularutf-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.

(cherry picked from commitbf5b646)

Co-authored-by: Alyssa Coghlanncoghlan@gmail.com
Co-authored-by: Inada Naokisongofacandy@gmail.com

`Out-File -Encoding utf8` and similar commands in Windows Powershell 5.1 emitUTF-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.(cherry picked from commitbf5b646)Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@miss-islington@ncoghlan

[8]ページ先頭

©2009-2025 Movatter.jp