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]

intl patches (9)



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


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