This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Fetch week start value for gcal 3.01 from locale
- From: Petter Reinholdtsen <pere at hungry dot com>
- To: Thomas Esken <esken at gmx dot net>
- Cc: bug-gcal at gnu dot org, libc-alpha at sources dot redhat dot com
- Date: Thu, 1 Jan 2004 17:42:31 +0100
- Subject: Re: [PATCH] Fetch week start value for gcal 3.01 from locale
- Bcc: Petter Reinholdtsen <petter dot reinholdtsen at usit dot uio dot no>
- References: <E1Ac59R-0004Sc-00@minerva.hungry.com>
[Petter Reinholdtsen]
> + start_day = *nl_langinfo(_NL_TIME_FIRST_WEEKDAY) - 1 ;
The cal source in util-linux uses this notation to extract the week day:
(int)nl_langinfo(_NL_TIME_FIRST_WEEKDAY)[0]
It might be a better alternative.