This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH v9 2/6] Implement alternative month names (bug 10871).
- From: Rafal Luzynski <digitalfreak at lingonborough dot com>
- To: Zack Weinberg <zackw at panix dot com>, Joseph Myers <joseph at codesourcery dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 6 Nov 2017 23:52:56 +0100 (CET)
- Subject: Re: [RFC][PATCH v9 2/6] Implement alternative month names (bug 10871).
- Authentication-results: sourceware.org; auth=none
- References: <742475879.1094767.1505817734249@poczta.nazwa.pl> <CAKCAbMhaqZJnunsVgsUrcg5=GjRJ6Oyh2kWLJjpUBgZxpTmoNg@mail.gmail.com> <alpine.DEB.2.20.1710271653050.6867@digraph.polyomino.org.uk>
- Reply-to: Rafal Luzynski <digitalfreak at lingonborough dot com>
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