[GRASS-dev] more on locale problem - workaround success!

Michael Barton c.michael.barton at gmail.com
Fri Jul 27 23:52:58 PDT 2012


This was driving me crazy and now I found out why. My colleague's new MacBook had file extensions hidden by default--even when hidden files were exposed!!!

It turns out that his text editor was adding ".txt" to all startup files and we could not see it. So .profile became .profile.txt, .bash_profile became .bash_profile.txt, etc. With this cleared up and the files renamed appropriately, we now have a workaround.

Setting LC_CTYPE and LC_ALL in .profile AND in .bash_profile ARE successful workarounds to this problem. Either one of them works. 

Setting these in .grass.bashrc, .bashrc, or .grassrc6 DO NOT work.

-- 

Now that there is a workaround, back to the underlying problems.

I still do not know why LC_CTYPE is set for my Mac and not for his (both fairly new and running Lion). But apparently this can happen with a non-English Mac. Now we need a permanent fix so that the GUI still runs in English at least if LC_CTYPE and LC_ALL are not set. As it is, his GRASS GUI remains in English, even though his preferences--and now his LC_CTYPE and LC_ALL--are set to Spanish.

Perhaps the new preferences setting works only in Linux? Or maybe it only works if you have compiled in the relevant language? In any case, something is not quite working right with a feature that will be an excellent enhancement to the program when it IS working well.

Michael


On Jul 27, 2012, at 9:08 PM, William Kyngesburye wrote:

> Set it in ~/.bash_profile, I don't think Terminal on OS X reads ~/.bashrc.
> 
> 
> On Jul 27, 2012, at 10:45 PM, Michael Barton wrote:
> 
>> Tried it. Didn't work. Any other ideas? I'm completely out of thoughts on this beyond roll back to before the change.
>> 
>> Michael
>> 
>> 
>> 
>> On Jul 27, 2012, at 7:02 PM, Hamish wrote:
>> 
>>> Michael:
>>>> Unfortunately, putting this into .grass.bashrc doesn't work,
>>>> nor does putting this into .profile nor .grassrc6 (a long
>>>> shot).
>>> 
>>> how about exporting it in ~/.bashrc?
>>> 
>>> If put in .grass.bashrc it might only be found if you start the gui
>>> from the GRASS> terminal prompt with g.gui, since it gets sourced late
>>> in the game.
>>> 
>>> 
>>> Hamish
>> 
>> _____________________
>> C. Michael Barton
>> Visiting Scientist, Integrated Science Program
>> National Center for Atmospheric Research &
>> University Consortium for Atmospheric Research
>> 303-497-2889 (voice)
>> 
>> Director, Center for Social Dynamics & Complexity 
>> Professor of Anthropology, School of Human Evolution & Social Change
>> Arizona State University
>> www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> "We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty."
> 
> "Don't you even hate 'em?"
> 
> "What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day."
> 
> <Ha, ha> "And it might give 'em all stomach ulcers."
> 
> - Tarzan, on war
> 

Michael Barton





More information about the grass-dev mailing list