Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Modules/_localemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,8 @@ _locale_nl_langinfo_impl(PyObject *module, int item)
result = result != NULL ? result : "";
char *oldloc = NULL;
if (langinfo_constants[i].category != LC_CTYPE
&& !is_all_ascii(result)
// gh-133740: Always change the locale for ALT_DIGITS
&& (item == ALT_DIGITS || !is_all_ascii(result))

This comment was marked as outdated.

&& change_locale(langinfo_constants[i].category, &oldloc) < 0)
{
return NULL;
Expand Down
Loading