[3.14] gh-137273: Fix debug assertion failure in locale.setlocale() on Windows (GH-137300) (#137305)

gh-137273: Fix debug assertion failure in locale.setlocale() on Windows (GH-137300)

It happened when there were at least 16 characters after dot in the
locale name.
(cherry picked from commit 718e0c89ba)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-10-07 20:39:13 +02:00 committed by GitHub
parent ebbfd8f51a
commit 14e8decde7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 97 additions and 21 deletions

View file

@ -0,0 +1 @@
Fix debug assertion failure in :func:`locale.setlocale` on Windows.