[RFC][PATCH v9 2/6] Implement alternative month names (bug 10871).
Rafal Luzynski
digitalfreak@lingonborough.com
Mon Nov 6 22:53:00 GMT 2017
27.10.2017 19:03 Joseph Myers <joseph@codesourcery.com> wrote:
> [...]
> Also, the POSIX proposal accepted for issue 8 has strptime %Ob and
> strptime %OB handled the same, despite that POSIX proposal not including
> strftime %Ob. (This is only an argument for %Ob handling for strptime to
> go in this patch rather than the later one adding alternative abbreviated
> months, however.)
>
> --
> Joseph S. Myers
> joseph@codesourcery.com
This may be an omission at POSIX side but I also think that the good
reason why all variants (B, b, h, OB, Ob, Oh) should be treated the same
is that the strptime() algorithm should be more forgiving and should
not throw the errors like "yes, I recognize correctly that Nov is
a shortcut for November but the format specifier says you were supposed
to provide a full version therefore I report an error here" (also swap
full/abbreviated, replace with basic/alternative etc.)
Regards,
Rafal
More information about the Libc-alpha
mailing list