[GRASS-user] bash scripts and NLS

Jarosław Jasiewicz jarekj at amu.edu.pl
Wed Mar 28 03:28:29 EDT 2007


Glynn Clements napisał(a):

>Jarek Jasiewicz wrote:
>
>  
>
>>...d.what.vect -1 -t  map=lines|grep category|awk '{print $2}'>>cat.txt...
>>
>>I compiled grass with NLS (national languages suports) and script stop 
>>working becouse there is no category (grep) but kategoria (category in 
>>polish). In my few scripts it is no problem (or rather I will never use 
>>NLS), but what about scripts in grass add-ons and nls?
>>    
>>
>
>If a script parses output which is meant to be human-readable, it
>needs to explicitly set the locale to "C" for that command, e.g.:
>
>	LC_ALL=C d.what.vect -1 -t ...
>
>  
>
thanks, taht is enough
Jarek




More information about the grass-user mailing list