This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH v9 2/6] Implement alternative month names (bug 10871).


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]