[GRASS5] Error with langinfo.h in Mac OS X 10.2.x

Glynn Clements glynn at gclements.plus.com
Wed May 11 04:49:29 EDT 2005


Radim Blazek wrote:

> > Last cvs includes in lib/gis/parser.c a link to:
> > langinfo.h
> > This file is only included in Darwin kernel from Mac OS X 10.3.x or later.
> > This is the true first incompatibility for Mac OS X 10.2.x with Grass.
> > I've compiled last cvs with old parser.c and it works.
> > I ask:
> > Is it much important this file or is it possible to work around?
> > What I lost?
> > 
> > Bye
> 
> The langinfo.h is necessary for nl_langinfo(CODESET). We need to get 
> somehow encoding of the gettext output.
> 
> gettext is using nl_langinfo(CODESET) so I thought that if gettext is 
> available and used (#if defined(HAVE_LIBINTL_H) && defined(USE_NLS))
> the header file langinfo.h should be also available.

langinfo.h needs its own configure check.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list