[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HAVE_LC_MESSAGES
From: |
Bruno Haible |
Subject: |
Re: HAVE_LC_MESSAGES |
Date: |
Wed, 13 Jul 2011 21:12:49 +0200 |
User-agent: |
KMail/1.9.9 |
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 @samp{LC_MESSAGES} is missing on some platforms:
mingw.
...
Note that gnulib also overrides setlocale(), so that the "fake" LC_MESSAGES
locale category actually becomes functional.
> However, how is
>
> #if HAVE_LC_MESSAGES
> setlocale(LC_MESSAGES,"");
> #endif
>
> better than
>
> #ifdef LC_MESSAGES
> setlocale(LC_MESSAGES,"");
> #endif
>
> ??
This #if or #ifdef is outdated. The gettext manual [1] explains why.
Bruno
[1] http://www.gnu.org/software/gettext/manual/html_node/Triggering.html
--
In memoriam Kurt Huber <http://en.wikipedia.org/wiki/Kurt_Huber>
- HAVE_LC_MESSAGES, Sam Steingold, 2011/07/13
- Re: HAVE_LC_MESSAGES,
Bruno Haible <=
- Re: HAVE_LC_MESSAGES, Sam Steingold, 2011/07/13
- Re: HAVE_LC_MESSAGES, Bruno Haible, 2011/07/13
- Re: HAVE_LC_MESSAGES, Sam Steingold, 2011/07/13
- Re: HAVE_LC_MESSAGES, Bruno Haible, 2011/07/14
- Re: HAVE_LC_MESSAGES, Sam Steingold, 2011/07/14
- Re: HAVE_LC_MESSAGES, Sam Steingold, 2011/07/19
- Re: HAVE_LC_MESSAGES, Bruno Haible, 2011/07/19