René's URL Explorer Experiment


Title: bpo-13153: Use OS native encoding for converting between Python and Tcl. by serhiy-storchaka · Pull Request #16545 · python/cpython · GitHub

Open Graph Title: bpo-13153: Use OS native encoding for converting between Python and Tcl. by serhiy-storchaka · Pull Request #16545 · python/cpython

X Title: bpo-13153: Use OS native encoding for converting between Python and Tcl. by serhiy-storchaka · Pull Request #16545 · python/cpython

Description: On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "surrogateescape" error handler for converting to/from Tcl String objects. Converting strings from Tcl to Python and back now never fails (except MemoryError). https://bugs.python.org/issue13153

Open Graph Description: On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "surrogateesca...

X Description: On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "s...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4d2cf7de-a545-1d35-77d0-6537e33de15a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA3F0:B008A:12CA9E3:19EB270:6A4DE710
html-safe-noncece46f0f1d2d4c0d78b85ccd41fec0d87238bde5314eefdcddf4a9bff3c681b4e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0YwOkIwMDhBOjEyQ0E5RTM6MTlFQjI3MDo2QTRERTcxMCIsInZpc2l0b3JfaWQiOiI3MTg5MDM1NDYzMjIyMTY3MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac73edf3ec3d7f4739bae3c1d1dd86f49797bf0cced3824e1ea4819b2f2a9ae29c
hovercard-subject-tagpull_request:323866595
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/16545/files
twitter:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
og:image:altOn Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "surrogateesca...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/16545/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F16545%2Ffiles
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2F16545%2Ffiles
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%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/16545/files
Reloadhttps://github.com/python/cpython/pull/16545/files
Reloadhttps://github.com/python/cpython/pull/16545/files
Please reload this pagehttps://github.com/python/cpython/pull/16545/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/16545/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
serhiy-storchakahttps://github.com/serhiy-storchaka
python:masterhttps://github.com/python/cpython/tree/master
serhiy-storchaka:tkinter-unicodehttps://github.com/serhiy-storchaka/cpython/tree/tkinter-unicode
Conversation 9 https://github.com/python/cpython/pull/16545
Commits 7 https://github.com/python/cpython/pull/16545/commits
Checks 0 https://github.com/python/cpython/pull/16545/checks
Files changed https://github.com/python/cpython/pull/16545/files
Please reload this pagehttps://github.com/python/cpython/pull/16545/files
bpo-13153: Use OS native encoding for converting between Python and Tcl. https://github.com/python/cpython/pull/16545/files#top
Show all changes 7 commits https://github.com/python/cpython/pull/16545/files
f4db0e7 bpo-13153: Use OS native encoding for converting between Python and Tcl. serhiy-storchaka Sep 26, 2019 https://github.com/python/cpython/pull/16545/commits/f4db0e7e00c7cd36f36cf272fbb1d92bcd7abdc5
a4382b7 Fix for Windows. serhiy-storchaka Oct 2, 2019 https://github.com/python/cpython/pull/16545/commits/a4382b76864e4d6e379dd0cf725a60270752e36c
cbe062c Fix tests. serhiy-storchaka Oct 2, 2019 https://github.com/python/cpython/pull/16545/commits/cbe062cac6666482f281dce75f5e6798563a9c92
397605f Remove unneeded code. Display astral chars in file names. serhiy-storchaka Oct 3, 2019 https://github.com/python/cpython/pull/16545/commits/397605f1f7977b9e419c57096a932fd0983d0288
8eb7361 Fix a refleak. serhiy-storchaka Oct 3, 2019 https://github.com/python/cpython/pull/16545/commits/8eb7361241459876e63625eaca460640266d72cb
dca403d Get rid of the last _filename_to_unicode(). serhiy-storchaka Oct 3, 2019 https://github.com/python/cpython/pull/16545/commits/dca403d9ba7100ed104a867fcd21b8561192ce44
1814d97 Fix clipboard. serhiy-storchaka Oct 4, 2019 https://github.com/python/cpython/pull/16545/commits/1814d97f38d44652da60c56674c52f10a8fe0b9e
Clear filters https://github.com/python/cpython/pull/16545/files
Please reload this pagehttps://github.com/python/cpython/pull/16545/files
Please reload this pagehttps://github.com/python/cpython/pull/16545/files
editor.py https://github.com/python/cpython/pull/16545/files#diff-0ebe4cdabcc123ccaae0e7cb5fcc54423a11b82957a8f972db70e98a1e847ae4
test_editor.py https://github.com/python/cpython/pull/16545/files#diff-bac2e14f6c7aadf914b40304552d8e0689317d8ff639a9a497cff07f3972392a
pyshell.py https://github.com/python/cpython/pull/16545/files#diff-f6ced3d8ba872fb8904aa7cf07512890be864c5b00ae0ccf3d0c3edff0a03567
runscript.py https://github.com/python/cpython/pull/16545/files#diff-6d3f0a2769192602a49c0827e63d537025a6be407813311b06f54c3e62ff169e
test_tcl.py https://github.com/python/cpython/pull/16545/files#diff-88e394f21bfd47aedd54837f416316b2b78965b8bdb129baa7d3f7c5340034a4
test_misc.py https://github.com/python/cpython/pull/16545/files#diff-c31b742e12bc0b55e3709a64684dc73ecaf2825ea0bfa774461eb5058cef0658
test_widgets.py https://github.com/python/cpython/pull/16545/files#diff-5a0e5586826cb20657ba0aa9c0aadaac54e16a60784a9306f250c5b2817e6d0f
2019-09-29-22-47-37.bpo-13153.0mO9qR.rst https://github.com/python/cpython/pull/16545/files#diff-fe5edf9f59216c6ea5f7b62847959a7692e0fb90a0959e95fa4bd0e7ac75e2b6
_tkinter.c https://github.com/python/cpython/pull/16545/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd
Lib/idlelib/editor.pyhttps://github.com/python/cpython/pull/16545/files#diff-0ebe4cdabcc123ccaae0e7cb5fcc54423a11b82957a8f972db70e98a1e847ae4
View file https://github.com/serhiy-storchaka/cpython/blob/1814d97f38d44652da60c56674c52f10a8fe0b9e/Lib/idlelib/editor.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16545/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16545/files#diff-0ebe4cdabcc123ccaae0e7cb5fcc54423a11b82957a8f972db70e98a1e847ae4
https://github.com/python/cpython/pull/16545/files#diff-0ebe4cdabcc123ccaae0e7cb5fcc54423a11b82957a8f972db70e98a1e847ae4
https://github.com/python/cpython/pull/16545/files#diff-0ebe4cdabcc123ccaae0e7cb5fcc54423a11b82957a8f972db70e98a1e847ae4
https://github.com/python/cpython/pull/16545/files#diff-0ebe4cdabcc123ccaae0e7cb5fcc54423a11b82957a8f972db70e98a1e847ae4
https://github.com/python/cpython/pull/16545/files#diff-0ebe4cdabcc123ccaae0e7cb5fcc54423a11b82957a8f972db70e98a1e847ae4
https://github.com/python/cpython/pull/16545/files#diff-0ebe4cdabcc123ccaae0e7cb5fcc54423a11b82957a8f972db70e98a1e847ae4
Lib/idlelib/idle_test/test_editor.pyhttps://github.com/python/cpython/pull/16545/files#diff-bac2e14f6c7aadf914b40304552d8e0689317d8ff639a9a497cff07f3972392a
View file https://github.com/serhiy-storchaka/cpython/blob/1814d97f38d44652da60c56674c52f10a8fe0b9e/Lib/idlelib/idle_test/test_editor.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16545/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16545/files#diff-bac2e14f6c7aadf914b40304552d8e0689317d8ff639a9a497cff07f3972392a
https://github.com/python/cpython/pull/16545/files#diff-bac2e14f6c7aadf914b40304552d8e0689317d8ff639a9a497cff07f3972392a
Lib/idlelib/pyshell.pyhttps://github.com/python/cpython/pull/16545/files#diff-f6ced3d8ba872fb8904aa7cf07512890be864c5b00ae0ccf3d0c3edff0a03567
View file https://github.com/serhiy-storchaka/cpython/blob/1814d97f38d44652da60c56674c52f10a8fe0b9e/Lib/idlelib/pyshell.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16545/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16545/files#diff-f6ced3d8ba872fb8904aa7cf07512890be864c5b00ae0ccf3d0c3edff0a03567
https://github.com/python/cpython/pull/16545/files#diff-f6ced3d8ba872fb8904aa7cf07512890be864c5b00ae0ccf3d0c3edff0a03567
https://github.com/python/cpython/pull/16545/files#diff-f6ced3d8ba872fb8904aa7cf07512890be864c5b00ae0ccf3d0c3edff0a03567
Please reload this pagehttps://github.com/python/cpython/pull/16545/files
https://github.com/python/cpython/pull/16545/files#diff-f6ced3d8ba872fb8904aa7cf07512890be864c5b00ae0ccf3d0c3edff0a03567
Lib/idlelib/runscript.pyhttps://github.com/python/cpython/pull/16545/files#diff-6d3f0a2769192602a49c0827e63d537025a6be407813311b06f54c3e62ff169e
View file https://github.com/serhiy-storchaka/cpython/blob/1814d97f38d44652da60c56674c52f10a8fe0b9e/Lib/idlelib/runscript.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16545/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16545/files#diff-6d3f0a2769192602a49c0827e63d537025a6be407813311b06f54c3e62ff169e
https://github.com/python/cpython/pull/16545/files#diff-6d3f0a2769192602a49c0827e63d537025a6be407813311b06f54c3e62ff169e
Lib/test/test_tcl.pyhttps://github.com/python/cpython/pull/16545/files#diff-88e394f21bfd47aedd54837f416316b2b78965b8bdb129baa7d3f7c5340034a4
View file https://github.com/serhiy-storchaka/cpython/blob/1814d97f38d44652da60c56674c52f10a8fe0b9e/Lib/test/test_tcl.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16545/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16545/files#diff-88e394f21bfd47aedd54837f416316b2b78965b8bdb129baa7d3f7c5340034a4
https://github.com/python/cpython/pull/16545/files#diff-88e394f21bfd47aedd54837f416316b2b78965b8bdb129baa7d3f7c5340034a4
https://github.com/python/cpython/pull/16545/files#diff-88e394f21bfd47aedd54837f416316b2b78965b8bdb129baa7d3f7c5340034a4
https://github.com/python/cpython/pull/16545/files#diff-88e394f21bfd47aedd54837f416316b2b78965b8bdb129baa7d3f7c5340034a4
https://github.com/python/cpython/pull/16545/files#diff-88e394f21bfd47aedd54837f416316b2b78965b8bdb129baa7d3f7c5340034a4
https://github.com/python/cpython/pull/16545/files#diff-88e394f21bfd47aedd54837f416316b2b78965b8bdb129baa7d3f7c5340034a4
Lib/tkinter/test/test_tkinter/test_misc.pyhttps://github.com/python/cpython/pull/16545/files#diff-c31b742e12bc0b55e3709a64684dc73ecaf2825ea0bfa774461eb5058cef0658
View file https://github.com/serhiy-storchaka/cpython/blob/1814d97f38d44652da60c56674c52f10a8fe0b9e/Lib/tkinter/test/test_tkinter/test_misc.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16545/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16545/files#diff-c31b742e12bc0b55e3709a64684dc73ecaf2825ea0bfa774461eb5058cef0658
https://github.com/python/cpython/pull/16545/files#diff-c31b742e12bc0b55e3709a64684dc73ecaf2825ea0bfa774461eb5058cef0658
Lib/tkinter/test/test_ttk/test_widgets.pyhttps://github.com/python/cpython/pull/16545/files#diff-5a0e5586826cb20657ba0aa9c0aadaac54e16a60784a9306f250c5b2817e6d0f
View file https://github.com/serhiy-storchaka/cpython/blob/1814d97f38d44652da60c56674c52f10a8fe0b9e/Lib/tkinter/test/test_ttk/test_widgets.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16545/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16545/files#diff-5a0e5586826cb20657ba0aa9c0aadaac54e16a60784a9306f250c5b2817e6d0f
https://github.com/python/cpython/pull/16545/files#diff-5a0e5586826cb20657ba0aa9c0aadaac54e16a60784a9306f250c5b2817e6d0f
https://github.com/python/cpython/pull/16545/files#diff-5a0e5586826cb20657ba0aa9c0aadaac54e16a60784a9306f250c5b2817e6d0f
https://github.com/python/cpython/pull/16545/files#diff-5a0e5586826cb20657ba0aa9c0aadaac54e16a60784a9306f250c5b2817e6d0f
https://github.com/python/cpython/pull/16545/files#diff-5a0e5586826cb20657ba0aa9c0aadaac54e16a60784a9306f250c5b2817e6d0f
https://github.com/python/cpython/pull/16545/files#diff-5a0e5586826cb20657ba0aa9c0aadaac54e16a60784a9306f250c5b2817e6d0f
Misc/NEWS.d/next/Library/2019-09-29-22-47-37.bpo-13153.0mO9qR.rsthttps://github.com/python/cpython/pull/16545/files#diff-fe5edf9f59216c6ea5f7b62847959a7692e0fb90a0959e95fa4bd0e7ac75e2b6
View file https://github.com/serhiy-storchaka/cpython/blob/1814d97f38d44652da60c56674c52f10a8fe0b9e/Misc/NEWS.d/next/Library/2019-09-29-22-47-37.bpo-13153.0mO9qR.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16545/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/16545/files
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.