bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: gettext and C usage


From: Paul Eggert
Subject: Re: gettext and C usage
Date: Tue, 26 Feb 2002 15:04:19 -0800 (PST)

> > > Systems without <locale.h> file are not in use anymore.
> > 
> > False.  I have one myself.
> 
> Can you say which OS this is, and when it was released?

A Google search reports that some fairly recent non-GNU operating
systems (HP-UX 11 and Solaris 7) have a locale.h that doesn't work
with some GCC installations.  Please see:

http://sources.redhat.com/ml/bug-gnu-utils/2001-11/msg00065.html
http://www.optix.org/~dxy/solaris/gnome-libs/1.2.13/CONFIG_LOG

It's quite possible that these are GCC misconfigurations (it wouldn't
be the first time :-), but the configurations were working with other
headers -- they just didn't work with <locale.h> -- so I wouldn't
reject those bug reports out of hand.

Also, the C99 standard does not require <locale.h> for freestanding
implementations, so code that might be useful on such implementations
should probably surround <locale.h> with a HAVE_LOCALE_H test.

Personally, I no longer bother to test for the following headers,
which have been required for a dozen years by the C standard even for
freestanding implementations:

<float.h> <limits.h> <stdarg.h> <stddef.h>

nor do I test for headers like <stdio.h> that have been present ever
since Unix Version 7.  But <locale.h> is still worth testing for, at
least in code that might be freestanding.



reply via email to

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