HAVE_LC_MESSAGES

2011-07-13 Thread Sam Steingold
Hi, What's the point of HAVE_LC_MESSAGES? I understand that HAVE_LC_MESSAGES is defined whenever config.h is included while LC_MESSAGES is only defined if locale.h is included. However, how is #if HAVE_LC_MESSAGES setlocale(LC_MESSAGES,); #endif better than #ifdef LC_MESSAGES

Re: HAVE_LC_MESSAGES

2011-07-13 Thread Bruno Haible
Hi, Sam Steingold wrote: What's the point of HAVE_LC_MESSAGES? The point is to tell whether LC_MESSAGES is supported by the system, or is a fake one defined by libintl or gnulib. See doc/posix-headers/locale.texi: Portability problems fixed by Gnulib: @itemize @item The definition of

Re: HAVE_LC_MESSAGES

2011-07-13 Thread Sam Steingold
Hi, * Bruno Haible oe...@pyvfc.bet [2011-07-13 21:12:49 +0200]: Sam Steingold wrote: What's the point of HAVE_LC_MESSAGES? The point is to tell whether LC_MESSAGES is supported by the system, or is a fake one defined by libintl or gnulib. does clisp need to know the difference? This #if

Re: HAVE_LC_MESSAGES

2011-07-13 Thread Bruno Haible
Sam Steingold wrote: does clisp need to know the difference? This #if or #ifdef is outdated. The gettext manual [1] explains why. [1] http://www.gnu.org/software/gettext/manual/html_node/Triggering.html The gettext manual answers this question. are you suggesting that clisp should import

Re: HAVE_LC_MESSAGES

2011-07-13 Thread Sam Steingold
* Bruno Haible oe...@pyvfc.bet [2011-07-13 22:44:49 +0200]: Sam Steingold wrote: does clisp need to know the difference? This #if or #ifdef is outdated. The gettext manual [1] explains why. [1] http://www.gnu.org/software/gettext/manual/html_node/Triggering.html The gettext manual