On Wed, 2020-07-15 at 18:50 +0000, Thorsten Glaser wrote:
> Michael Meskes dixit:
> 
> >> b�& nor does ncal use the locale for this, so, no, it does not use
> >> appropriate calendar week calculation rules.
> >
> >This is simply not true since it definitely does.
> 
> I looked before writing that eMail, so it’s true; ncal uses the
> locale
> to look up a country code, which then is used to determine the date
> of
> the julian→gregorian calendar switch. That’s it exactly, nothing
> more.

Huh? I don't think so:

$ grep -r nl_langinfo ncal/* 
ncal/calendar.c:        if ((wd = weekday(nd) + 1 - weekstart) >=
*nl_langinfo(_NL_TIME_WEEK_1STWEEK))
ncal/ncal.c:            u.str = nl_langinfo(_NL_TIME_WEEK_1STDAY);
ncal/ncal.c:            weekstart =
*nl_langinfo(_NL_TIME_FIRST_WEEKDAY) + (ndaysj(&first_week_d) -
ndaysj(&sunday)) % 7 - 1;

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL

Reply via email to