This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fetch week start value for gcal 3.01 from locale


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]