bug-gnulib
[Top][All Lists]
Advanced

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

Re: test-langinfo failures on Irix 5.3


From: Bruno Haible
Subject: Re: test-langinfo failures on Irix 5.3
Date: Sat, 11 Sep 2010 01:36:33 +0200
User-agent: KMail/1.9.9

Tom G. Christensen wrote:
> It does the trick, thanks.

Good.

> Now for nl_langinfo this test is also failing:
> $ ./test-nl_langinfo.sh
> test-nl_langinfo.c:46: assertion failed
> Abort - core dumped
> 
> I see in config.log:
> REPLACE_NL_LANGINFO='1'
> HAVE_LANGINFO_CODESET='0'

This test failure is an indication that for a platform worth supporting,
one would have to add extra support, so that nl_langinfo(CODESET) returns
a reasonable value.

> I can see that the call to setlocale returns 'C', however that makes
> gnulib nl_langinfo return "" since the dot = NULL case is not handled.
> Would it not be okay to simply return the output from setlocale in this
> case?

No, "C" is a locale name, but not an encoding name. The function could
return "ASCII" or "ISO-8859-1" or "UTF-8", depending on what the system
does / what the fonts of the usual programs display. But IRIX 5.3 is so
old, it does not make sense to start the investigation. For such an obsolete
system, be happy that gnulib modules compile.

Bruno



reply via email to

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