-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
locale.nl_langinfo(locale.ERA) is broken #125411
Copy link
Copy link
Closed as duplicate of#126727
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done
Bug report
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.Output:
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.
cc @methane