This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: LC_TIME first_weekday locale consolidation
On Sun, Mar 08, 2009 at 01:58:03AM +0100, Samuel Thibault wrote:
> Petr Baudis, le Sun 08 Mar 2009 01:45:56 +0100, a écrit :
> > On Sun, Mar 08, 2009 at 01:12:45AM +0100, Samuel Thibault wrote:
> > > Yes, but week[2] is only about the day array and such. ISO 8601 says
> > > that it should start on monday. Then first_weekday can be 7 to express
> > > sunday.
> >
> > Huh, ISO 8601 does not talk about any day[] arrays and such - can you
> > point me to a specific section?
>
> Well, I don't have ISO 8601, but reading SC22/WG20 N897 about `week':
>
> `ISO 8601 conforming applications should use the values 7, 19971201 (a
> Monday), and 4 (Thursday), respectively.'
The wikipedia article on ISO 8601 has a download link.
I think an application that intends to be ISO 8601 conforming really
also needs to have first_weekday set up in such a way that it considers
the first day of week as Monday, not just the first element of day[]
array - ISO 8601 is an interopreation standard, it does not matter what
the international representation is.
It's not clear if we actually want to support this standard anyway. If
designing the C locale from scratch, it would make sense, but like this
I think it's up to the particular application to ensure ISO 8601
conformance if it cares about it.
--
Petr "Pasky" Baudis
The average, healthy, well-adjusted adult gets up at seven-thirty
in the morning feeling just terrible. -- Jean Kerr