Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.7k
(2.7k)
Actions
Projects
Security and quality
Insights
More
items
Rework locale encoding C functions
- #158680
#158680
Merged
vstinner
merged 16 commits into
python:main
python/cpython:main
from
vstinner:encode_locale
vstinner/cpython:encode_locale
Copy head branch name to clipboard
Oct 4, 2026
Conversation
Commits
16
(16)
Checks
Files changed
Merged
Rework locale encoding C functions
#158680
vstinner
merged 16 commits into
python:main
python/cpython:main
from
vstinner:encode_locale
vstinner/cpython:encode_locale
Copy head branch name to clipboard
Commits
Commits on Oct 3, 2026
Add output_length to _Py_EncodeLocaleEx()
Show description for c4bacc6
vstinner
committed
c4bacc6
View commit details
Copy full SHA for c4bacc6
Browse repository at this point
Wrap long lines
Show description for 783aff1
vstinner
committed
783aff1
View commit details
Copy full SHA for 783aff1
Browse repository at this point
Commits on Oct 4, 2026
Add constants for encode errors
Show description for faab2a8
vstinner
committed
faab2a8
View commit details
Copy full SHA for faab2a8
Browse repository at this point
Add more tests on all Encode/Decode output parameters
Show description for 6d7139c
vstinner
committed
6d7139c
View commit details
Copy full SHA for 6d7139c
Browse repository at this point
Remove reason parameter
Show description for 6933b1d
vstinner
committed
6933b1d
View commit details
Copy full SHA for 6933b1d
Browse repository at this point
Rename functions
Show description for 2827453
vstinner
committed
2827453
View commit details
Copy full SHA for 2827453
Browse repository at this point
Update comment
vstinner
committed
f029aff
View commit details
Copy full SHA for f029aff
Browse repository at this point
Update tests
vstinner
committed
2fa4c3a
View commit details
Copy full SHA for 2fa4c3a
Browse repository at this point
indent
vstinner
committed
0caf0ce
View commit details
Copy full SHA for 0caf0ce
Browse repository at this point
Mark _Py_EncodeLocaleRaw() as static
vstinner
committed
7e0dfeb
View commit details
Copy full SHA for 7e0dfeb
Browse repository at this point
Self review
vstinner
committed
23c1ff3
View commit details
Copy full SHA for 23c1ff3
Browse repository at this point
Remove redundant assertion
vstinner
committed
56d285b
View commit details
Copy full SHA for 56d285b
Browse repository at this point
Test embedded NUL byte/character
vstinner
committed
9bbafbb
View commit details
Copy full SHA for 9bbafbb
Browse repository at this point
Update comments
vstinner
committed
8bb54eb
View commit details
Copy full SHA for 8bb54eb
Browse repository at this point
Remove unused variable
vstinner
committed
bbd3b91
View commit details
Copy full SHA for bbd3b91
Browse repository at this point
Fix the doc/comments
vstinner
committed
2102314
View commit details
Copy full SHA for 2102314
Browse repository at this point
You can’t perform that action at this time.