Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-100750: pass encoding kwarg in lib/platform.py#100751
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
1ac7321 toe18da85CompareLib/platform.py Outdated
| ['uname','-p'], | ||
| stderr=subprocess.DEVNULL, | ||
| text=True, | ||
| encoding="locale", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I thinkuname output is not localized.
https://github.com/coreutils/coreutils/blob/8d4768c94d0fa9de545a6e1c370f9a6fae4cb3a7/src/uname.c#L314-L371
So we can use "utf-8" or "latin1" here.
Misc/NEWS.d/next/Library/2023-01-04-14-42-59.gh-issue-100750.iFJs5Y.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
miss-islington commentedJan 20, 2023
Thanks@graingert for the PR, and@ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
)(cherry picked from commit6b3993c)Co-authored-by: Thomas Grainger <tagrain@gmail.com>Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
bedevere-bot commentedJan 20, 2023
GH-101207 is a backport of this pull request to the3.11 branch. |
(cherry picked from commit6b3993c)Co-authored-by: Thomas Grainger <tagrain@gmail.com>Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
miss-islington commentedFeb 7, 2023
Thanks@graingert for the PR, and@ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
)(cherry picked from commit6b3993c)Co-authored-by: Thomas Grainger <tagrain@gmail.com>Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
bedevere-bot commentedFeb 7, 2023
GH-101644 is a backport of this pull request to the3.10 branch. |
Uh oh!
There was an error while loading.Please reload this page.