bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] AM_GNU_GETTEXT without referring internal symbols?


From: Masanori Ogino
Subject: [bug-gettext] AM_GNU_GETTEXT without referring internal symbols?
Date: Fri, 1 Apr 2016 21:56:34 +0900

Hello,

Now AM_GNU_GETTEXT uses _nl_msg_cat_cntr and _nl_expand_alias to check
whether the implementation is compatible with GNU gettext. However,
the symbols don't appear in libintl.h so it seems that they are not
part of the public API.

Actually, musl libc implements libintl features and the score of
gettext-tools' testsuite is equal to that with the internal libintl,
using a modified AM_GNU_GETTEXT.

The musl's libintl.h even defines __USE_GNU_GETTEXT and
__GNU_GETTEXT_SUPPORTED_REVISION, but it does not imitate private
symbols.

I had checked the archive and I've found some discussions:
https://lists.gnu.org/archive/html/bug-gnu-utils/2006-03/msg00011.html
http://lists.gnu.org/archive/html/bug-gettext/2015-11/msg00015.html

So, if the goal of the macro is check if the implementation is
compatible with GNU gettext, why don't we check the public API rather
than using internal symbols? Is it possible to check if the
implementation is not one of known "broken" implementations and/or it
is really compatible?

Regards,
-- 
Masanori Ogino



reply via email to

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