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][BZ 10871] Month names in genitive case


Thank you for your comments, Mike.

> On 8 Jan 2016 01:47 Mike Frysinger <vapier@gentoo.org> wrote:
>
> [...]
> because of this, and the other issues outlined here:
> https://sourceware.org/bugzilla/show_bug.cgi?id=10871#c7
>
> i think it'd be useful to start a thread on the POSIX list. %OB is not
> covered by the spec currently:
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html

That's true. But on the other hand I don't know what is the current
status of this document: http://austingroupbugs.net/view.php?id=258

> the route you went with here -- not adding any new symbols, and trying
> to make the %B behavior automatic -- makes sense to me. it means we
> don't really break existing apps, and if we change %B back if/when the
> POSIX standard includes %OB, then we continue to not really break.

That's exactly what I mean.

> > --- a/time/strptime_l.c
> > +++ b/time/strptime_l.c
> >
> > +static char const alt_month_name[][10] =
> > + {
> > + "January", "February", "March", "April", "May", "June",
> > + "July", "August", "September", "October", "November", "December"
> > + };
>
> why introduce a new array ? one with the same size & values already
> exists a few lines above this with the name "month_name".
> -mike

I've sacrificed the memory for the simplicity of the algorithm which
now (at least sometimes) has to check both basic and nominative month
names. But you're right, this can be implemented without this new
array. So I accept as a thing for me to do: remove this array if
not necessary.

Thanks,

Rafal Luzynski


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