[GRASS-dev] build without NLS broken

Markus Neteler neteler at osgeo.org
Tue Dec 2 02:30:49 EST 2008


On Tue, Dec 2, 2008 at 5:45 AM, Glynn Clements <glynn at gclements.plus.com> wrote:
>
> 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.

Does this affect 6?

Markus


More information about the grass-dev mailing list