Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-17 Thread Thorsten Glaser
Michael Meskes dixit: >As for the second, see above. Unless proven wrong I stick with what the locale >gives me. Funny thing, I just checked what strftime does; POSIX is a bit more explanatory than the BSD manpages here, so quoting it: U Replaced by the week number of the year as a

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-17 Thread Michael Meskes
On Thu, Jul 16, 2020 at 03:43:24PM +, Thorsten Glaser wrote: > Michael Meskes dixit: > > >Do you have any documentation about the US system that is kind of > >official? I doubt anyone in the States uses week numbers, but there may > >be an official way nonetheless. > > https://de.wikipedia.or

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-16 Thread Thorsten Glaser
Michael Meskes dixit: >Do you have any documentation about the US system that is kind of >official? I doubt anyone in the States uses week numbers, but there may >be an official way nonetheless. https://de.wikipedia.org/wiki/Woche#Berechnung_in_den_USA_und_vielen_anderen_L%C3%A4ndern so far, plus

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-16 Thread Michael Meskes
> … but they all look only for _NL_TIME_WEEK_1STWEEK, not for the > mode of how the weeks are calculated. I know at least two, ISO In fact there are three different queries, for _NL_TIME_WEEK_1STWEEK, _NL_TIME_WEEK_1STDAY, and _NL_TIME_FIRST_WEEKDAY. > (first week-of-year has at least 4 days/4ᵗʰ

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-16 Thread Thorsten Glaser
Michael Meskes dixit: >Huh? I don't think so: > >$ grep -r nl_langinfo ncal/* Ah, I searched for locale, there’s another function… … but they all look only for _NL_TIME_WEEK_1STWEEK, not for the mode of how the weeks are calculated. I know at least two, ISO (first week-of-year has at least 4 da

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-16 Thread Michael Meskes
On Wed, 2020-07-15 at 18:50 +, 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 e

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-15 Thread Thorsten Glaser
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

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-15 Thread Michael Meskes
> >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. This is simply not true since it definitely does. > >be more helpful to report and/or fix those as ncal s

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-15 Thread Thorsten Glaser
Michael Meskes dixit: >> The locale doesnbt contain enough information to calculate calendar >> weeks: >> https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html > >Well, our locales do I think. > >> Therebs neither a data field for the first day of the week, nor one >> for >>

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-15 Thread Michael Meskes
> The locale doesn’t contain enough information to calculate calendar > weeks: > https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html Well, our locales do I think. > There’s neither a data field for the first day of the week, nor one > for > the various ways to calculate a cal

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-14 Thread Thorsten Glaser
Michael Meskes dixit: >> >Could you please elaborate what (n)cal miss? "ncal -w" does give you >> >week numbers >> >> But which ones? American? German? ISO? (Turns out the latter two are > >Depends on the locale you use. The locale doesn’t contain enough information to calculate calendar weeks: h

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-14 Thread Michael Meskes
> >Could you please elaborate what (n)cal miss? "ncal -w" does give you > >week numbers > > But which ones? American? German? ISO? (Turns out the latter two are Depends on the locale you use. > identical.) This is completely underdocumented and doesn’t match > expectations; even the “week begins

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-14 Thread Thorsten Glaser
Michael Meskes dixit: >Could you please elaborate what (n)cal miss? "ncal -w" does give you >week numbers But which ones? American? German? ISO? (Turns out the latter two are identical.) This is completely underdocumented and doesn’t match expectations; even the “week begins with sunday/monday” k

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-13 Thread Michael Meskes
On Wed, Jul 08, 2020 at 09:13:50PM +0200, Thorsten Glaser wrote: > I’ve packaged (some time ago already) cal(1) from OpenBSD, because > it/its documentation guarantees a flag to get German calendar weeks > (KWs) as “kwal” (specifically for that). Could you please elaborate what (n)cal miss? "ncal

Bug#964566: ncal: please handle /usr/bin/cal + manpage via alternatives

2020-07-08 Thread Thorsten Glaser
Package: ncal Version: 12.1.3 Severity: wishlist Hi, I’ve packaged (some time ago already) cal(1) from OpenBSD, because it/its documentation guarantees a flag to get German calendar weeks (KWs) as “kwal” (specifically for that). While I’ve not (yet) uploaded this to Debian itself, kwal could als