René's URL Explorer Experiment


Title: Avoid using the locale encoding for open() in tests · Issue #85235 · python/cpython · GitHub

Open Graph Title: Avoid using the locale encoding for open() in tests · Issue #85235 · python/cpython

X Title: Avoid using the locale encoding for open() in tests · Issue #85235 · python/cpython

Description: BPO 41063 Nosy @vstinner, @methane, @serhiy-storchaka Dependencies bpo-41048: read_mime_types() should read the rule file using UTF-8, not the locale encodingbpo-41055: Remove outdated tests for tp_printbpo-41058: pdb reads source files ...

Open Graph Description: BPO 41063 Nosy @vstinner, @methane, @serhiy-storchaka Dependencies bpo-41048: read_mime_types() should read the rule file using UTF-8, not the locale encodingbpo-41055: Remove outdated tests for tp...

X Description: BPO 41063 Nosy @vstinner, @methane, @serhiy-storchaka Dependencies bpo-41048: read_mime_types() should read the rule file using UTF-8, not the locale encodingbpo-41055: Remove outdated tests for tp...

Opengraph URL: https://github.com/python/cpython/issues/85235

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Avoid using the locale encoding for open() in tests","articleBody":"BPO | [41063](https://bugs.python.org/issue41063)\r\n--- | :---\r\nNosy | @vstinner, @methane, @serhiy-storchaka\r\nDependencies | \u003cli>bpo-41048: read_mime_types() should read the rule file using UTF-8, not the locale encoding\u003c/li>\u003cli>bpo-41055: Remove outdated tests for tp_print\u003c/li>\u003cli>bpo-41058: pdb reads source files using the locale encoding\u003c/li>\u003cli>bpo-41069: Use non-ascii file names in tests by default\u003c/li>\u003cli>gh-85308: argparse uses default encoding when read arguments from file\u003c/li>\u003cli>bpo-41137: pdb uses the locale encoding for .pdbrc\u003c/li>\u003cli>bpo-41138: trace CLI reads source files using the locale encoding\u003c/li>\u003cli>bpo-41139: cgi uses the locale encoding for log files\u003c/li>\u003cli>bpo-41140: cgitb uses the locale encoding for log files\u003c/li>\u003cli>bpo-41143: distutils uses the locale encoding for the .pypirc file\u003c/li>\u003cli>gh-85322: pipes uses text files and the locale encodig\u003c/li>\r\n\r\n\u003csup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup>\r\n\r\n\u003cdetails>\u003csummary>Show more details\u003c/summary>\u003cp>\r\n\r\nGitHub fields:\r\n```python\r\nassignee = None\r\nclosed_at = None\r\ncreated_at = \u003cDate 2020-06-21.11:04:15.601>\r\nlabels = ['3.7', '3.8', '3.9', '3.10', 'type-feature', 'tests']\r\ntitle = 'Avoid using the locale encoding for open() in tests'\r\nupdated_at = \u003cDate 2020-06-28.16:23:08.646>\r\nuser = 'https://github.com/serhiy-storchaka'\r\n```\r\n\r\nbugs.python.org fields:\r\n```python\r\nactivity = \u003cDate 2020-06-28.16:23:08.646>\r\nactor = 'serhiy.storchaka'\r\nassignee = 'none'\r\nclosed = False\r\nclosed_date = None\r\ncloser = None\r\ncomponents = ['Tests']\r\ncreation = \u003cDate 2020-06-21.11:04:15.601>\r\ncreator = 'serhiy.storchaka'\r\ndependencies = ['41048', '41055', '41058', '41069', '41136', '41137', '41138', '41139', '41140', '41143', '41150']\r\nfiles = []\r\nhgrepos = []\r\nissue_num = 41063\r\nkeywords = []\r\nmessage_count = 1.0\r\nmessages = ['371994']\r\nnosy_count = 3.0\r\nnosy_names = ['vstinner', 'methane', 'serhiy.storchaka']\r\npr_nums = []\r\npriority = 'normal'\r\nresolution = None\r\nstage = None\r\nstatus = 'open'\r\nsuperseder = None\r\ntype = 'enhancement'\r\nurl = 'https://bugs.python.org/issue41063'\r\nversions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']\r\n```\r\n\r\n\u003c/p>\u003c/details>\r\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2020-06-21T11:04:16Z","url":"https://github.com/python/cpython/issues/85235"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:591119bd-edf1-a54e-4568-96c963c3e1e8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idED28:157BA1:E235B6:13090FD:6B005887
html-safe-nonce7bebcad04e5c327244d8cfd99853cef0840fad31e4b526f030cd73e26cb44982
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDI4OjE1N0JBMTpFMjM1QjY6MTMwOTBGRDo2QjAwNTg4NyIsInZpc2l0b3JfaWQiOiIzNzkyNjQ5Mjc3NDMyNDIwNDg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacae2305834042aceca5efb311e33be998891577c2d57a1ff8a94fcf77bc67066e
hovercard-subject-tagissue:1199039124
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/85235/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8880a2b24aea17439cfc5fda92483f52119f9bdc23d8138c70122d912f7c61b4/python/cpython/issues/85235
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8880a2b24aea17439cfc5fda92483f52119f9bdc23d8138c70122d912f7c61b4/python/cpython/issues/85235
og:image:altBPO 41063 Nosy @vstinner, @methane, @serhiy-storchaka Dependencies bpo-41048: read_mime_types() should read the rule file using UTF-8, not the locale encodingbpo-41055: Remove outdated tests for tp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
turbo-cache-controlno-preview
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
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/85235#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F85235
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%2Fpython%2Fcpython%2Fissues%2F85235
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/85235
Reloadhttps://github.com/python/cpython/issues/85235
Reloadhttps://github.com/python/cpython/issues/85235
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/85235
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/85235
Avoid using the locale encoding for open() in testshttps://github.com/python/cpython/issues/85235#top
3.10 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.10%20(EOL)%22
3.7 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.7%20(EOL)%22
3.8 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.8%20(EOL)%22
3.9 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20(EOL)%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jun 21, 2020https://github.com/python/cpython/issues/85235#issue-1199039124
41063https://bugs.python.org/issue41063
@vstinnerhttps://github.com/vstinner
@methanehttps://github.com/methane
@serhiy-storchakahttps://github.com/serhiy-storchaka
bpo-41048https://bugs.python.org/issue?@action=redirect&bpo=41048
bpo-41055https://bugs.python.org/issue?@action=redirect&bpo=41055
bpo-41058https://bugs.python.org/issue?@action=redirect&bpo=41058
bpo-41069https://bugs.python.org/issue?@action=redirect&bpo=41069
argparse uses default encoding when read arguments from file #85308https://github.com/python/cpython/issues/85308
bpo-41137https://bugs.python.org/issue?@action=redirect&bpo=41137
bpo-41138https://bugs.python.org/issue?@action=redirect&bpo=41138
bpo-41139https://bugs.python.org/issue?@action=redirect&bpo=41139
bpo-41140https://bugs.python.org/issue?@action=redirect&bpo=41140
bpo-41143https://bugs.python.org/issue?@action=redirect&bpo=41143
pipes uses text files and the locale encodig #85322https://github.com/python/cpython/issues/85322
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jun 21, 2020https://github.com/python/cpython/issues/85235#issuecomment-1093875333
serhiy-storchakahttps://github.com/serhiy-storchaka
3.7 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.7%20(EOL)%22
3.8 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.8%20(EOL)%22
3.9 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20(EOL)%22
3.10 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.10%20(EOL)%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
on Jun 21, 2020https://github.com/python/cpython/issues/85235#event-6403978652
ezio-melottihttps://github.com/ezio-melotti
https://github.com/python/cpython/issues/undefined
on Apr 10, 2022https://github.com/python/cpython/issues/85235#event-6403978661
serhiy-storchakahttps://github.com/serhiy-storchaka
Locale issues 🗺https://github.com/orgs/python/projects/22
on May 21, 2022https://github.com/python/cpython/issues/85235#event-15232582926
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on May 25, 2022https://github.com/python/cpython/issues/85235#issuecomment-1136591937
@methanehttps://github.com/methane
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 25, 2022https://github.com/python/cpython/issues/85235#event-6674373230
pythongh-85235: Always specify encoding for open() text files.https://github.com/serhiy-storchaka/cpython/commit/5ee255bb68fc9a2e1db13f03c047628c9e73475f
pythongh-85235https://github.com/python/cpython/issues/85235
5ee255bhttps://github.com/serhiy-storchaka/cpython/commit/5ee255bb68fc9a2e1db13f03c047628c9e73475f
erlend-aaslandhttps://github.com/erlend-aasland
Argparse issueshttps://github.com/orgs/python/projects/5
on Jul 30, 2022https://github.com/python/cpython/issues/85235#event-15231308080
erlend-aaslandhttps://github.com/erlend-aasland
Argparse issueshttps://github.com/orgs/python/projects/5
on Feb 21, 2023https://github.com/python/cpython/issues/85235
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 11, 2024https://github.com/python/cpython/issues/85235#issuecomment-2344014162
vstinnerhttps://github.com/vstinner
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 11, 2024https://github.com/python/cpython/issues/85235#event-14218506213
github-project-automationhttps://github.com/apps/github-project-automation
Argparse issueshttps://github.com/orgs/python/projects/5
on Sep 11, 2024https://github.com/python/cpython/issues/85235
github-project-automationhttps://github.com/apps/github-project-automation
Locale issues 🗺https://github.com/orgs/python/projects/22
on Sep 11, 2024https://github.com/python/cpython/issues/85235
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/85235
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/85235
3.10 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.10%20(EOL)%22
3.7 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.7%20(EOL)%22
3.8 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.8%20(EOL)%22
3.9 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20(EOL)%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
Argparse issueshttps://github.com/orgs/python/projects/5
Locale issues 🗺https://github.com/orgs/python/projects/22
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.