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: LC_TIME first_weekday locale consolidation


Petr Baudis, le Sun 08 Mar 2009 00:57:46 +0100, a écrit :
> On Sat, Mar 07, 2009 at 09:55:30PM +0100, Samuel Thibault wrote:
> > Petr Baudis wrote:
> > > it has been for long documented that DAY_1 in nl_langinfo() is
> > > always Sunday and many applicaitons might rely on it; thus, it
> > > would be probably safer to keep this convention in order to not
> > > confuse applications that are not aware of first_weekday and week[2]
> > > (week_1stday).
> > 
> > Then quite a few locales need to be fixed in that direction.  Or we make
> > these applications get fixed by making the en_US locale be ISO 8601
> > conforming (i.e. week[2] is 19971201) and let them react.
> 
> But week does begin on Sunday in US, does it not?

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.

Samuel


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