René's URL Explorer Experiment


Title: WIP bpo-34589: Move locale coercion back to the CLI app by ncoghlan · Pull Request #9257 · python/cpython · GitHub

Open Graph Title: WIP bpo-34589: Move locale coercion back to the CLI app by ncoghlan · Pull Request #9257 · python/cpython

X Title: WIP bpo-34589: Move locale coercion back to the CLI app by ncoghlan · Pull Request #9257 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This PR moves locale coercion back to happening as soon as possible in the CLI app, so there's no re-encoding dance involved in handling it, and so you can emulate systems that don't have a...

X Description: This PR moves locale coercion back to happening as soon as possible in the CLI app, so there's no re-encoding dance involved in handling it, and so you can emulate systems that don'...

Opengraph URL: https://github.com/python/cpython/pull/9257

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:f60cf3f1-237e-7ed6-d556-1e0d9ab305a4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id99FC:3C8683:ABD049:E6FE14:6A4ED26C
html-safe-noncea645655c38f19e7acde9faa3f3bbedc8806013db25e86584e3db5ed40443eb2d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUZDOjNDODY4MzpBQkQwNDk6RTZGRTE0OjZBNEVEMjZDIiwidmlzaXRvcl9pZCI6IjQwNjA3OTE2NDA1NTc1Mzk5NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacde9588e6b5a8e6e1f70248ffa2ff0ab864d365cb2ae569cf87de5f4f25a58f2a
hovercard-subject-tagpull_request:215319216
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/9257/commits
twitter:imagehttps://opengraph.githubassets.com/57d023f69cc7bc242af40c87be91f67c89330728d432adec3d4760defc62f19f/python/cpython/pull/9257
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/57d023f69cc7bc242af40c87be91f67c89330728d432adec3d4760defc62f19f/python/cpython/pull/9257
og:image:altThis PR moves locale coercion back to happening as soon as possible in the CLI app, so there's no re-encoding dance involved in handling it, and so you can emulate systems that don't have a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamencoghlan
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/9257/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F9257%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F9257%2Fcommits
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/9257/commits
Reloadhttps://github.com/python/cpython/pull/9257/commits
Reloadhttps://github.com/python/cpython/pull/9257/commits
Please reload this pagehttps://github.com/python/cpython/pull/9257/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/9257/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
ncoghlanhttps://github.com/ncoghlan
python:masterhttps://github.com/python/cpython/tree/master
ncoghlan:bpo-34589-move-locale-coercion-back-to-the-intended-locationhttps://github.com/ncoghlan/cpython/tree/bpo-34589-move-locale-coercion-back-to-the-intended-location
Conversationhttps://github.com/python/cpython/pull/9257
Commits19 (19)https://github.com/python/cpython/pull/9257/commits
Checkshttps://github.com/python/cpython/pull/9257/checks
Files changedhttps://github.com/python/cpython/pull/9257/files
WIP bpo-34589: Move locale coercion back to the CLI apphttps://github.com/python/cpython/pull/9257/commits#top
ncoghlanhttps://github.com/ncoghlan
python:masterhttps://github.com/python/cpython/tree/master
ncoghlan:bpo-34589-move-locale-coercion-back-to-the-intended-locationhttps://github.com/ncoghlan/cpython/tree/bpo-34589-move-locale-coercion-back-to-the-intended-location
bpo-34589: Move locale coercion back to the CLI apphttps://github.com/python/cpython/pull/9257/commits/8114fb9e544dad15aa1c6e54efb2af74ca2d50e8
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
8114fb9https://github.com/python/cpython/pull/9257/commits/8114fb9e544dad15aa1c6e54efb2af74ca2d50e8
https://github.com/python/cpython/tree/8114fb9e544dad15aa1c6e54efb2af74ca2d50e8
Merge remote-tracking branch 'origin/master' into bpo-34589-move-locale-coercion-back-to-the-intended-locationhttps://github.com/python/cpython/pull/9257/commits/dacbfa5fd5f9fd366501ce6b5bdceb9d356753d6
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
dacbfa5https://github.com/python/cpython/pull/9257/commits/dacbfa5fd5f9fd366501ce6b5bdceb9d356753d6
https://github.com/python/cpython/tree/dacbfa5fd5f9fd366501ce6b5bdceb9d356753d6
Add NEWS entryhttps://github.com/python/cpython/pull/9257/commits/c46457e52bdd082899d7aa0f657be3c3c47a8a0f
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
c46457ehttps://github.com/python/cpython/pull/9257/commits/c46457e52bdd082899d7aa0f657be3c3c47a8a0f
https://github.com/python/cpython/tree/c46457e52bdd082899d7aa0f657be3c3c47a8a0f
Update documentationhttps://github.com/python/cpython/pull/9257/commits/7b453f1fd34e776ad2435972d4d610bcc9c6076a
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
7b453f1https://github.com/python/cpython/pull/9257/commits/7b453f1fd34e776ad2435972d4d610bcc9c6076a
https://github.com/python/cpython/tree/7b453f1fd34e776ad2435972d4d610bcc9c6076a
Add missing periodhttps://github.com/python/cpython/pull/9257/commits/a71ca03ac8f624412e532bc2a168b09ba1877bcf
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
a71ca03https://github.com/python/cpython/pull/9257/commits/a71ca03ac8f624412e532bc2a168b09ba1877bcf
https://github.com/python/cpython/tree/a71ca03ac8f624412e532bc2a168b09ba1877bcf
Fix option markup (courtesy of 'make suspicious')https://github.com/python/cpython/pull/9257/commits/bb16468bb69fb721ceadfd89f262d6b3172d4d6b
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
bb16468https://github.com/python/cpython/pull/9257/commits/bb16468bb69fb721ceadfd89f262d6b3172d4d6b
https://github.com/python/cpython/tree/bb16468bb69fb721ceadfd89f262d6b3172d4d6b
Handle NULL output pointers in _Py_CoerceLegacyLocalehttps://github.com/python/cpython/pull/9257/commits/f4c686babca9870fc832797f2b960a6420c14f38
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
f4c686bhttps://github.com/python/cpython/pull/9257/commits/f4c686babca9870fc832797f2b960a6420c14f38
https://github.com/python/cpython/tree/f4c686babca9870fc832797f2b960a6420c14f38
Merge remote-tracking branch 'origin/master' into bpo-34589-move-locale-coercion-back-to-the-intended-locationhttps://github.com/python/cpython/pull/9257/commits/88ee976205b77ca7659cc5db9fe6af12f9fbe7d0
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
88ee976https://github.com/python/cpython/pull/9257/commits/88ee976205b77ca7659cc5db9fe6af12f9fbe7d0
https://github.com/python/cpython/tree/88ee976205b77ca7659cc5db9fe6af12f9fbe7d0
Further adjustments to locale coercionhttps://github.com/python/cpython/pull/9257/commits/5f8b61c7f06366d8e235457d1fb9a78342b8e8d3
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
5f8b61chttps://github.com/python/cpython/pull/9257/commits/5f8b61c7f06366d8e235457d1fb9a78342b8e8d3
https://github.com/python/cpython/tree/5f8b61c7f06366d8e235457d1fb9a78342b8e8d3
bpo-30672: Make POSIX locale coercion tests unconditionalhttps://github.com/python/cpython/pull/9257/commits/e48e5b7bbab19cd97d0cc45883fd47b2f1f13811
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
e48e5b7https://github.com/python/cpython/pull/9257/commits/e48e5b7bbab19cd97d0cc45883fd47b2f1f13811
https://github.com/python/cpython/tree/e48e5b7bbab19cd97d0cc45883fd47b2f1f13811
Address cosmetic review commentshttps://github.com/python/cpython/pull/9257/commits/454d3797ce11550ad1174275b0b4bb4126e00c1d
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
454d379https://github.com/python/cpython/pull/9257/commits/454d3797ce11550ad1174275b0b4bb4126e00c1d
https://github.com/python/cpython/tree/454d3797ce11550ad1174275b0b4bb4126e00c1d
Merge remote-tracking branch 'origin/master' into bpo-34589-move-locale-coercion-back-to-the-intended-locationhttps://github.com/python/cpython/pull/9257/commits/ba86880966c646c3e6547b29dc46673ae0097309
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
ba86880https://github.com/python/cpython/pull/9257/commits/ba86880966c646c3e6547b29dc46673ae0097309
https://github.com/python/cpython/tree/ba86880966c646c3e6547b29dc46673ae0097309
Merge remote-tracking branch 'origin/master' into bpo-34589-move-locale-coercion-back-to-the-intended-locationhttps://github.com/python/cpython/pull/9257/commits/c685a47e73a5c2db164971ad73ccd41898dbf2cc
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
c685a47https://github.com/python/cpython/pull/9257/commits/c685a47e73a5c2db164971ad73ccd41898dbf2cc
https://github.com/python/cpython/tree/c685a47e73a5c2db164971ad73ccd41898dbf2cc
Fix remaining merge issuehttps://github.com/python/cpython/pull/9257/commits/c46a686ec42e09f01a3a1b34e98f4f38d90d7469
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
c46a686https://github.com/python/cpython/pull/9257/commits/c46a686ec42e09f01a3a1b34e98f4f38d90d7469
https://github.com/python/cpython/tree/c46a686ec42e09f01a3a1b34e98f4f38d90d7469
Note another potential test fragility resolutionhttps://github.com/python/cpython/pull/9257/commits/5a07ecb8d955e08e229ce836859172bb1ba47b52
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
5a07ecbhttps://github.com/python/cpython/pull/9257/commits/5a07ecb8d955e08e229ce836859172bb1ba47b52
https://github.com/python/cpython/tree/5a07ecb8d955e08e229ce836859172bb1ba47b52
Ensure there's no implicit C locale coercionhttps://github.com/python/cpython/pull/9257/commits/06b6849cf12d650e4c60e089eefd08790ab94b24
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
06b6849https://github.com/python/cpython/pull/9257/commits/06b6849cf12d650e4c60e089eefd08790ab94b24
https://github.com/python/cpython/tree/06b6849cf12d650e4c60e089eefd08790ab94b24
Reinstate support for -E/-I affecting PYTHONCOERCECLOCALEhttps://github.com/python/cpython/pull/9257/commits/590e64e5a89522389bf53cc5ddcd32380ba1e3cf
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
590e64ehttps://github.com/python/cpython/pull/9257/commits/590e64e5a89522389bf53cc5ddcd32380ba1e3cf
https://github.com/python/cpython/tree/590e64e5a89522389bf53cc5ddcd32380ba1e3cf
Address self-review commentshttps://github.com/python/cpython/pull/9257/commits/da12f9d9c318d17ba662b4aa4acee85ac5fc7fad
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
da12f9dhttps://github.com/python/cpython/pull/9257/commits/da12f9d9c318d17ba662b4aa4acee85ac5fc7fad
https://github.com/python/cpython/tree/da12f9d9c318d17ba662b4aa4acee85ac5fc7fad
Merge remote-tracking branch 'origin/master' into bpo-34589-move-locale-coercion-back-to-the-intended-locationhttps://github.com/python/cpython/pull/9257/commits/60a25ed5a3b7b8f1eb70f79316d0a75ea6fbfe22
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/cpython/commits?author=ncoghlan
60a25edhttps://github.com/python/cpython/pull/9257/commits/60a25ed5a3b7b8f1eb70f79316d0a75ea6fbfe22
https://github.com/python/cpython/tree/60a25ed5a3b7b8f1eb70f79316d0a75ea6fbfe22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.