René's URL Explorer Experiment


Title: Pin text I/O to UTF-8 and fail CI on locale-dependent reads/writes by maxisbey · Pull Request #3296 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Pin text I/O to UTF-8 and fail CI on locale-dependent reads/writes by maxisbey · Pull Request #3296 · modelcontextprotocol/python-sdk

X Title: Pin text I/O to UTF-8 and fail CI on locale-dependent reads/writes by maxisbey · Pull Request #3296 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Pin text I/O to UTF-8 and fail CI on locale-dependent reads/writes by maxisbey · Pull Request #3296 · modelcontextprotocol/python-sdk

Open Graph Description: Follows #3245 (merged). Motivation and Context #3244 / #3245 fix the two read_text() calls the test suite trips over on a Windows machine whose ANSI code page isn't cp1252. The underlying probl...

X Description: Follows #3245 (merged). Motivation and Context #3244 / #3245 fix the two read_text() calls the test suite trips over on a Windows machine whose ANSI code page isn't cp1252. The underlying p...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/3296

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:3805b9fd-c8a3-7c7c-bf6e-b34739f13ad1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idECD0:6365:662F13:8A8B1D:6B00D746
html-safe-nonce34cb5edfcf9b8f63e34387e4239f466f3a673ef1e9e1672309df8655b56f5c8d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0QwOjYzNjU6NjYyRjEzOjhBOEIxRDo2QjAwRDc0NiIsInZpc2l0b3JfaWQiOiI0MjM1NDg1NjY0MzUyNzIwNzEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbfc96e07c01ca6a3e501716af9ec5b0c1cd278f28b53b9f712c43d28cf7cbcc6
hovercard-subject-tagpull_request:4261077284
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/modelcontextprotocol/python-sdk/pull/3296/commits
twitter:imagehttps://opengraph.githubassets.com/afcb77dfab49397ad187c19e03a7572105236376d91e10d82315e5c469ad64b5/modelcontextprotocol/python-sdk/pull/3296
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/afcb77dfab49397ad187c19e03a7572105236376d91e10d82315e5c469ad64b5/modelcontextprotocol/python-sdk/pull/3296
og:image:altFollows #3245 (merged). Motivation and Context #3244 / #3245 fix the two read_text() calls the test suite trips over on a Windows machine whose ANSI code page isn't cp1252. The underlying probl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxisbey
hostnamegithub.com
expected-hostnamegithub.com
Nonea481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b
turbo-cache-controlno-cache
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
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
release84c8c5cc25e2fb7f2308428458538436baecc6d2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3296%2Fcommits
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3296%2Fcommits
Sign uphttps://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=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues308 (308)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
https://github.com/modelcontextprotocol/python-sdk
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
encoding-guardhttps://github.com/modelcontextprotocol/python-sdk/tree/encoding-guard
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/3296
Commits10 (10)https://github.com/modelcontextprotocol/python-sdk/pull/3296/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/3296/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/3296/files
Pin text I/O to UTF-8 and fail CI on locale-dependent reads/writeshttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits#top
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
encoding-guardhttps://github.com/modelcontextprotocol/python-sdk/tree/encoding-guard
Read UTF-8 test fixtures with explicit encodinghttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/d8f8feb8f89700d28a9a48ea49151f760294b888
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
d8f8febhttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/d8f8feb8f89700d28a9a48ea49151f760294b888
https://github.com/modelcontextprotocol/python-sdk/tree/d8f8feb8f89700d28a9a48ea49151f760294b888
Pin text I/O to UTF-8 and fail CI on locale-dependent reads/writeshttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/6c27385787406e19959d405a71baad1892511283
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
6c27385https://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/6c27385787406e19959d405a71baad1892511283
https://github.com/modelcontextprotocol/python-sdk/tree/6c27385787406e19959d405a71baad1892511283
Address review: quote "$@", fail the README check closed, reword the ruff preview notehttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/b8e97a0939d9c71029a8ebfa3146856e6d200d1c
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
b8e97a0https://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/b8e97a0939d9c71029a8ebfa3146856e6d200d1c
https://github.com/modelcontextprotocol/python-sdk/tree/b8e97a0939d9c71029a8ebfa3146856e6d200d1c
Merge remote-tracking branch 'origin/main' into encoding-guardhttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/f72016f465ace36dc7414fd50a9cfd1e31efe130
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
f72016fhttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/f72016f465ace36dc7414fd50a9cfd1e31efe130
https://github.com/modelcontextprotocol/python-sdk/tree/f72016f465ace36dc7414fd50a9cfd1e31efe130
Drop the preview-only lint rule, gate the pre-commit hook too, tolerate a BOM in the Claude confighttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/dbf7dca8c209d31ddeaca7147bd5df6a633a2c35
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
dbf7dcahttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/dbf7dca8c209d31ddeaca7147bd5df6a633a2c35
https://github.com/modelcontextprotocol/python-sdk/tree/dbf7dca8c209d31ddeaca7147bd5df6a633a2c35
Decode the captured child stderr leniently, like the other two captureshttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/9572a8564088cf0270fd61c718c20d70eab536c3
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
9572a85https://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/9572a8564088cf0270fd61c718c20d70eab536c3
https://github.com/modelcontextprotocol/python-sdk/tree/9572a8564088cf0270fd61c718c20d70eab536c3
Trim to the test-suite guard; let the JSON layer own the config's encodinghttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/f2bdbb73c92d0fc8af455d78e9828267bb07ee5a
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
f2bdbb7https://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/f2bdbb73c92d0fc8af455d78e9828267bb07ee5a
https://github.com/modelcontextprotocol/python-sdk/tree/f2bdbb73c92d0fc8af455d78e9828267bb07ee5a
Point contributors at scripts/test; keep a test's quoted tutorial line in synchttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/1bc867059bc34e4a2ffd8ef9d73d05e59dae7551
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
1bc8670https://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/1bc867059bc34e4a2ffd8ef9d73d05e59dae7551
https://github.com/modelcontextprotocol/python-sdk/tree/1bc867059bc34e4a2ffd8ef9d73d05e59dae7551
Don't ask people to set the env var for everyday test runs; scripts/test and CI carry ithttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/17aed5d03ae56fb626b73216f9c6354c22ef03ef
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
17aed5dhttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/17aed5d03ae56fb626b73216f9c6354c22ef03ef
https://github.com/modelcontextprotocol/python-sdk/tree/17aed5d03ae56fb626b73216f9c6354c22ef03ef
README snippet check: give a mis-encoded source the same one-line error as a missing onehttps://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/26447e2c52ae3c8f9dc7095cbd4d71870d2d3bec
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
26447e2https://github.com/modelcontextprotocol/python-sdk/pull/3296/commits/26447e2c52ae3c8f9dc7095cbd4d71870d2d3bec
https://github.com/modelcontextprotocol/python-sdk/tree/26447e2c52ae3c8f9dc7095cbd4d71870d2d3bec
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.