[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettext and C usage
From: |
Bruno Haible |
Subject: |
Re: gettext and C usage |
Date: |
Thu, 28 Feb 2002 14:00:17 +0100 (CET) |
Eli Zaretskii writes:
> > #ifndef LC_MESSAGES
> > # define LC_MESSAGES (-1)
> > #endif
>
> Agreed. Should this go into gettext.h or into one of the headers in
> the package which uses Gettext?
It belongs into the package, more precisely into the files which uses
setlocale(). Files which only use dcgettext don't need this fallback
because if !ENABLE_NLS, the LC_MESSAGES of dcgettext gets thrown away.
Remember that "gettext.h" is only a conditional wrapper for
<libintl.h>, not for <locale.h>.
Bruno