bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HAVE_LC_MESSAGES


From: Sam Steingold
Subject: Re: HAVE_LC_MESSAGES
Date: Wed, 13 Jul 2011 18:26:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> * Bruno Haible <address@hidden> [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 answers this question.

Sorry, I need more help here. I read the page and I see no answer to the
question:

Does clisp need to know whether LC_MESSAGES is supported by the system,
or is a fake one defined by libintl or gnulib.

Please remember that I am an "English-only bigot" who believes that all
i18n/l12n efforts are a waste of time :-) so I know very little about
gettext et al and I wish I knew even less.

>> are you suggesting that clisp should import the locale gnulib module instead?
>
> No, this is not needed: gettext's libintl.h already defines LC_MESSAGES when
> needed, and clisp uses libintl.h.

CLISP includes libintl.h only if ENABLE_NLS is defined (i.e., when
gettext is present).
It uses HAVE_LC_MESSAGES in spvw_ctype.d:init_ctype which is called
unconditionally in spvw.d.
I.e., on platforms without gettext where LC_MESSAGES is not defined
init_ctype is still called and its call

  setlocale(LC_MESSAGES,"");

must be guarded by either "#if HAVE_LC_MESSAGES" or "#ifdef LC_MESSAGES".

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 
11.0.60900031
http://memri.org http://iris.org.il http://www.PetitionOnline.com/tap12009/
http://thereligionofpeace.com http://truepeace.org http://dhimmi.com
If at first you don't suck seed, try and suck another seed.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]