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
3.13only security fixes3.14bugs and security fixes3.15bugs and security fixesextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error
It is broken in the same way as locale.nl_langinfo(locale.ALT_DIGITS) was broken (see #124969), although not to the same degree. It returns the last (current) era.
The result is not completely useless, as it can be used to format and parse the current dates. But dates before the start of the current era (it is 2020 in Japan) cannot be proceeded.
The result should be a tuple, containing information for all eras, but this is a breaking change. So, perhaps such change cannot be backported.
3.13only security fixes3.14bugs and security fixes3.15bugs and security fixesextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error
Activity
[-]locale.nl_langinfo(locale.ALT_DIGITS) is broken[/-][+]locale.nl_langinfo(locale.ERA) is broken[/+]serhiy-storchaka commentedon Oct 16, 2024
@kulikjak, could you also show the output of the above code on Solaris?
kulikjak commentedon Oct 17, 2024
Sure, here's the output:
(sorry I didn't notice this yesterday)
StanFromIreland commentedon Jun 23, 2025
With libc 2.41 I get the following:
I presume you had an older version. So do we just want to convert it to return a tuple?
serhiy-storchaka commentedon Jul 13, 2025
I forgot about this issue and created a duplicate issue #126727.