[PATCH] Fetch week start value for gcal 3.01 from locale
Ulrich Drepper
drepper@redhat.com
Fri Jan 2 01:07:00 GMT 2004
-----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-----
More information about the Libc-alpha
mailing list