[GRASS-user] wxpython error in mac OS (Cannot set locale to
'es_AR')
William Kyngesburye
woklist at kyngchaos.com
Wed Apr 11 09:48:45 EDT 2012
I've been seing this a lot - the problem is that Python itself expects a locale to be in the form:
language.encoding
For some reason on some Mac systems, LC_CTYPE is getting set to just the language. Python checks LC_CTYPE before LANG (there is a Terminal that automatically sets LANG). So in your ~/.bash_profile you need to add:
export LC_CTYPE=es_AR.UTF-8
On Apr 11, 2012, at 4:37 AM, Lluís Vicens wrote:
> Al 11/04/12 11:22, En/na Markus Neteler ha escrit:
>> 2012/4/11 Lluís Vicens<lluis at sigte.udg.es>:
>>> Hi,
>>>
>>> I have a student that wants to run GRASS 6.4.2 on a mac OS and he is
>>> experimenting the following error: when he tries to start grass creating a
>>> new locations/mapset, it appears an error message:
>>>
>>> pythonw2 error
>>> Cannot set locale to 'es_AR'
>>>
>>> I'm a linux user so i'm not familiar with some (probably) 'typical' problems
>>> on mac. Any hint/help will be welcome.
>>> Thanks in advance!
>> Besides the fix done by Martin, if you could live with es_ES locale,
>> then use:
>>
>> export LANG=es_ES
>> export LANGUAGE=es_ES
>> export LC_MESSAGES=es_ES
>>
>> Best
>> Markus
> A lot of thanks Markus and Martin for your help! I will let him know this options for fixing this error.
>
> Best regards,
> Lluís
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
All generalizations are dangerous, even this one.
More information about the grass-user
mailing list