On Wed, 18 Nov 2009, Aurelien Jarno wrote: > week 7;19971130;4 / first_weekday 7 and week 7;19971201;4 / > first_weekday 1 are both meaning that the week starts on sunday.
That's incorrect. 19971130 means the first day of the week is a Sunday, 19971201 means the first day of the week is a Monday. The first_weekday is then indexed according to this value, so if it was 1 with 19971130, then the first day displayed on a calendar is Sunday; if it was 2, it'd be Monday. If it was 1 with 19971201, then the first day displayed on a calendar would be Monday, if it was 7, then it'd be saturday. See page 47 of ISO 14652 for reference. > It should not make a difference in cal if it correctly parses the > locales values. cal is properly calling nl_langinfo and dealing correctly with the return value of _NL_TIME_WEEK1STWEEK. > Anyway as a lot of programs are not parsing the locales values > correctly and assume week 7;19971130;4 (like probably cal does), > I'll fix that in the next upload. No, the problem isn't that they aren't parsinng the locales value properly; the problem is that what the C locale is reporting has changed. Don Armstrong -- Who is thinking this? I am. -- Greg Egan _Diaspora_ p38 http://www.donarmstrong.com http://rzlab.ucr.edu -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org