Support Unix-like locales on Windows
@serhiy-storchaka đang làm issue này rồi.
Từ ngày 20/4/2026.
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
Feature or enhancement
Windows supports locale names in different formats. Some of them look similar to Unix-like names. The locale module tries to convert locale names on Windows to Unix-like form. It does not try hard, so getlocale() and setlocale() can return something unusual. What is worse, Unix-like names are not always supported in setlocale(), even if the locale in principle is supported on Windows. See also #67613 and #87281.
This issue is a continuation of #137729 on Windows. Linux and Unix in general support locales ca_ES.utf8@valencia, sr_RS.utf8@latin and uz_UZ.utf8@cyrillic. Windows supports the same locales with names ca-ES-valencia, sr-Latn-RS and uz-Cyrl-UZ. setlocale() should map the former to the latter (of course it should continue to support the former).
Linked PRs
- gh-148794
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.