ngettext errors with --disable-nls (was Re: [Nagiosplug-devel] check_procs, check_ldap compile errors)

Ton Voon tonvoon at mac.com
Fri Dec 10 12:30:09 CET 2004


On 10 Dec 2004, at 08:22, Andreas Ericsson wrote:

> Ton Voon wrote:
>> Andreas,
>> Just to let you know that I've worked out why ngettext was failing, 
>> so it is now fixed. I've reverted back the ngettext changes that you 
>> have suggested patches for. A compile with or without --disable-nls 
>> works now.
>
> I noticed (the rollback). Is it wise to use ngettext for floating 
> point though?
>

I've just tried it and it works fine. ngettext is defined in 
intl/gettextP.h as:

extern char *__ngettext (const char *__msgid1, const char *__msgid2,
                          unsigned long int __n);

So I'm guessing that the compiler has converted the float to an int. 
But I'm happy to take advice if anyone knows better.

Ton





More information about the Devel mailing list