This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
intl patches (9)
- To: libc-alpha at sources dot redhat dot com
- Subject: intl patches (9)
- From: Bruno Haible <haible at ilog dot fr>
- Date: Mon, 19 Mar 2001 20:18:42 +0100 (CET)
This comment says POSIX doesn't specify setlocale(category,NULL). But SUSV2
and ISO C 99 do.
2001-02-24 Bruno Haible <haible@clisp.cons.org>
* intl/dcigettext.c: Update comment about HAVE_LOCALE_NULL.
diff -r -c3 intl/dcigettext.c intl-98/dcigettext.c
*** intl/dcigettext.c Sat Mar 17 18:23:23 2001
--- intl/dcigettext.c Sat Mar 17 14:40:20 2001
***************
*** 194,202 ****
/* XPG3 defines the result of `setlocale (category, NULL)' as:
``Directs `setlocale()' to query `category' and return the current
setting of `local'.''
! However it does not specify the exact format. And even worse: POSIX
! defines this not at all. So we can use this feature only on selected
! system (e.g. those using GNU C Library). */
#ifdef _LIBC
# define HAVE_LOCALE_NULL
#endif
--- 194,202 ----
/* XPG3 defines the result of `setlocale (category, NULL)' as:
``Directs `setlocale()' to query `category' and return the current
setting of `local'.''
! However it does not specify the exact format. Neither do SUSV2 and
! ISO C 99. So we can use this feature only on selected systems (e.g.
! those using GNU C Library). */
#ifdef _LIBC
# define HAVE_LOCALE_NULL
#endif