[GRASS-dev] g.mlist, g.mremove fails in non-English locale

Maciej Sieczka tutey at o2.pl
Mon Apr 7 02:11:02 EDT 2008


Hamish pisze:
> Maciej Sieczka wrote:

>> What's wrong?

> The g.mlist script relies on the g.list module being run untranslated

Ah right.

> The immediate fix is to add a couple of lines to the start of the script
> temporarily disabling the locale settings, much like is done for scripts
> that use awk to stop "," being used as the decimal marker.

I think this is a good idea for all shell scripts then. Many use grep, 
sed, tr etc. like if the output was always in English.

> The long term fix is to rewrite g.mlist not to be a hack.

I'm affraid the issue is not limited to g.mlist.

Maciek


More information about the grass-dev mailing list