[GRASS-dev] nvizlib compile error

Martin Landa landa.martin at gmail.com
Wed Jul 9 17:23:41 EDT 2008


Hi,

2008/7/8 Moritz Lennert <mlennert at club.worldonline.be>:
> Now it compiles, but when I display the elevation map from the NC data set
> and then chose the nviz tool in the map display, the entire wx gui
> crashes...
> Just found out why: it's a locale problem. LANG is set to fr_BE.UTF-8 on my
> system. When I set it to C nviz runs (great job !!), but when I leave the
> default setting, wxgrass crashes and I get the following error in the
> terminal window where I launch g.gui:
>
> GRASS_INFO_ERROR(22238,1): région pour le jeu de données (mapset) courant
> ligne 1: <n-s resol: 29.349241>
>
> GRASS_INFO_ERROR(22238,1): lancer "g.region"
> GRASS_INFO_END(22238,1)

right, it crashes when LC_NUMERIC != "C",  calling G_scan_resolution()

http://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/rd_cellhd.c#L258

quick fix

http://trac.osgeo.org/grass/changeset/32063

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-dev mailing list