Michael Meskes dixit:
>> The locale doesnb t contain enough information to calculate calendar
>> weeks:
>> https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html
>
>Well, our locales do I think.
>
>> Thereb s neither a data field for the first day of the week, nor one
>> for
>> the various ways to calculate a calendar week.
>
>But there are, for instance:
>
>michael@feivel:~$ locale -kc week-1stweek
>LC_TIME
>week-1stweek=1
Hrm, locale(5) shows…
week followed by a list of three values separated by semicolons: The
number of days in a week (by default 7), a date of beginning of
the week (by default corresponds to Sunday), and the minimal
length of the first week in year (by default 4). Regarding the
start of the week, 19971130 shall be used for Sunday and
19971201 shall be used for Monday. See NOTES.
… but that’s neither accessible…
tglase@tglase-nb:~ $ locale -kc first_weekday
LC_TIME
first_weekday=1
tglase@tglase-nb:~ $ locale -kc week
locale: unknown name "week"
>I haven't seen any error in ncal so far, but if you see some it might
… nor does ncal use the locale for this, so, no, it does not use
appropriate calendar week calculation rules.
>be more helpful to report and/or fix those as ncal should not show
I’m honestly not interested in working on ncal, given I don’t even use
it and have a perfectly working implementation (I *did*, initially,
plan on patching ncal to support various standards for calendar week
calculation, until I found that OpenBSD’s cal already has them right).
bye,
//mirabilos
--
[...] if maybe ext3fs wasn't a better pick, or jfs, or maybe reiserfs, oh but
what about xfs, and if only i had waited until reiser4 was ready... in the be-
ginning, there was ffs, and in the middle, there was ffs, and at the end, there
was still ffs, and the sys admins knew it was good. :) -- Ted Unangst über *fs