On Fri, Apr 07, 2006 at 11:42:10AM +0200, Samuel Thibault wrote:
> Samuel Thibault, le Fri 07 Apr 2006 11:28:31 +0200, a ?crit :
> > cal currently has -s and -m options for choosing the first day of the
> > week. This shouldn't be necessary, thanks to locales
> > (langinfo(_NL_TIME_FIRST_WEEKDAY)).
> 
> Actually, more generally cal should use _NL_TIME_WEEK_NDAYS,
> _NL_TIME_WEEK_1STDAY, _NL_TIME_WEEK_1STWEEK, _NL_TIME_FIRST_WEEKDAY, and
> ABDAY_1, ABDAY_2, etc. for properly printing a fully localized calendar.

The next upload of bsdmainutils will support using
_NL_TIME_FIRST_WEEKDAY (see #288472), now that glibc properly supports
this.

I've not, however, integrated support for any of the other constants.
cal currently uses strftime to format names according to the current
locale when it needs to. Is there a reason to use langinfo(3) for this
instead?

-- 
gram


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to