python / python/cpython

Support Unix-like locales on Windows

オープン
#148,792 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@serhiy-storchaka がすでに取り組んでいます。

2026年4月20日 から。

3.15 OS-windows stdlib type-feature
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。