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: Ulrich Drepper <drepper at redhat dot com>
- To: Petter Reinholdtsen <pere at hungry dot com>
- Cc: Thomas Esken <esken at gmx dot net>, bug-gcal at gnu dot org, libc-alpha at sources dot redhat dot com
- Date: Thu, 01 Jan 2004 17:04:15 -0800
- Subject: Re: [PATCH] Fetch week start value for gcal 3.01 from locale
- Organization: Red Hat, Inc.
- References: <E1Ac59R-0004Sc-00@minerva.hungry.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Petter Reinholdtsen wrote:
> +#if HAVE_NL_LANGINFO
> + /* locale value is 1 (sunday) to 7 (saturday), start-day should be 1
> + (monday) to 7 (sunday) */
> +
> + start_day = *nl_langinfo(_NL_TIME_FIRST_WEEKDAY) - 1 ;
This must be
#if HAVE_NL_LANGINFO && defined _NL_TIME_FIRST_WEEKDAY
There are other implementations with nl_langinfo() but no other has the
latter symbol.
- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/9MOP2ijCOnn/RHQRAtNTAJ0QpjjJLwqtKkm9IezJ975c6rKqwACfQVSD
+d+2cvq9iVjsd2ys1UTqBlI=
=+P5l
-----END PGP SIGNATURE-----