[GRASS-dev] build without NLS broken
Glynn Clements
glynn at gclements.plus.com
Mon Dec 1 23:45:40 EST 2008
David Mahoney wrote:
> In r34485 there were a bunch of changes to lib/gis/gisinit.c, one of
> which calls G_init_locale(). However, this is not necessarily defined
> in locale.c. I'm not really a C guy, but this seemed to fix it for
> me. For reference, the build fails on an undefined reference to
> G_init_locale. I tried it on an Ubuntu machine and on OS X.
Oops.
I have changed lib/gis/locale.c (r34662) so that only the code which
depends upon libintl.h is conditionalised, but G_init_locale() is
defined unconditionally. This ensures that the setlocale() calls still
occur, which is necessary to ensure that e.g. printf("%f") isn't
localised.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list