[GRASS-dev] Messing with locale during start-up in r53620
Martin Landa
landa.martin at gmail.com
Mon Nov 12 06:09:31 PST 2012
Hi,
2012/11/12 Maris Nartiss <maris.gis at gmail.com>:
> can You, please, explain me rationale behind r53620?
> Now GRASS mangles with LANG and LOCALE settings also when it shouldn't
> - when no language overrider is in force. IMHO GRASS shouldn't
> interfere with existing system settings unless explicitly requested by
> user.
not fully understanding your report, wxGUI stores environmental
variables in .grass7/bashrc.
1)
env | grep LANG
LANG=en_US.UTF-8
LANGUAGE=en_US:en
start GRASS -> starts using system language settings
2)
LANG=cs_CZ grass70 -gui
-> starts in user defined settings
3)
* start wxGUI -> Settings -> Preferences -> Appearance -> change
language settings -> Save
* restart GRASS
-> starts with locales defined in .grass7/bashrc
$ cat /home/landa/.grass7/bashrc
export LANG=cs
grass70
env | grep LANG
LANG=cs
LANGUAGE=cs
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
More information about the grass-dev
mailing list