[GRASS5] [bug #3591] (grass) d.vect.thematic (and other scripts): LC_NUMERIC setting not used in my Debian

Markus Neteler neteler at itc.it
Wed Aug 31 09:57:08 EDT 2005


On Wed, Aug 31, 2005 at 10:24:13AM +0200, Moritz Lennert wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Glynn Clements wrote:
> > Request Tracker wrote:
> > 
> > 
> >>this bug's URL: http://intevation.de/rt/webrt?serial_num=3591
> >>-------------------------------------------------------------------------
> >>
> >>Subject: d.vect.thematic (and other scripts): LC_NUMERIC setting not
> >>used in my Debian
> > 
> > 
> > GRASS doesn't use any of the locale categories except for LC_MESSAGES
> > (if it was built using --with-nls).
> 
> mlennert at moritz:~/CVS/GRASS/grass6/scripts$ grep -R LC_NUMERIC *
> d.correlate/d.correlate:export LC_NUMERIC=C
> d.out.png/d.out.png:export LC_NUMERIC=C
> d.resize/d.resize:export LC_NUMERIC=C
> d.vect.thematic/d.vect.thematic:export LC_NUMERIC=C
> i.fusion.brovey/i.fusion.brovey:export LC_NUMERIC=C
> i.image.mosaic/i.image.mosaic:export LC_NUMERIC=C
> i.in.spotvgt/i.in.spotvgt:export LC_NUMERIC=C
> i.oif/i.oifcalc:export LC_NUMERIC=C
> r.fillnulls/r.fillnulls:export LC_NUMERIC=C
> r.in.srtm/r.in.srtm:export LC_NUMERIC=C
> r.plane/r.plane:export LC_NUMERIC=C
> r.reclass.area/r.reclass.area:export LC_NUMERIC=C
> r.regression.line/r.regression.line:export LC_NUMERIC=C
> r.univar.sh/r.univar.sh:export LC_NUMERIC=C
> v.db.addcol/v.db.addcol:export LC_NUMERIC=C
> v.db.addtable/v.db.addtable:export LC_NUMERIC=C
> v.db.droptable/v.db.droptable:export LC_NUMERIC=C
> v.db.update/v.db.update:export LC_NUMERIC=C
> v.in.e00/v.in.e00:export LC_NUMERIC=C
> v.in.garmin/v.in.garmin:export LC_NUMERIC=C
> v.in.garmin/v.in.garmin:export LC_NUMERIC=C
> v.in.gns/v.in.gns:export LC_NUMERIC=C
> v.in.mapgen/v.in.mapgen:export LC_NUMERIC=C
> v.rast.stats/v.rast.stats:export LC_NUMERIC=C
> v.univar.sh/v.univar.sh:export LC_NUMERIC=C
> 
> So it is used quite a lot in scripts.
> 
> But I received an answer to the question on why it didn't work for me:
> 
> At Tue, 30 Aug 2005 10:06:37 -0400,
> Daniel Jacobowitz wrote:
> 
> >>> > LC_ALL=fr_BE
> >
> >>
> >> Note: this means that LC_ALL is already set in your environment.
> >> LC_ALL is documented to override all the other environment variables.
> >> So it's completely expected that changing LC_NUMERIC has no effect.
> 
> So, whenever a user has LC_ALL set, any other LC settings won't
> work. We should either indicate this in the man pages, or find
> another solution...

Stupid idea: Can you try to add

unset LC_ALL

before the LC_NUMERIC change in d.vect.thematic?

Markus




More information about the grass-dev mailing list