Hello, I observed exactly the same problem on a Mac with 10.6.x of a student and we identified an R installation as the culprit, during which the student had done changes in the terminal... So I would think that the Terminal preferences were changed by some other installation rather than it would be a bug.
Cheers Ralf > That's not it then. 10.6.8 here also. > > Did you try turning on the Terminal pref to set the locale? > > On Mar 27, 2012, at 8:50 AM, Julian Bogdani wrote: > >> Mine is 10.6.8 >> >> >> ----- >> Julian >> >> http://bradypus.net >> >> >> >> >> >> On 27 Mar 2012, at 15:47 , William Kyngesburye wrote: >> >>> Huh. Well, I did some poking around on the 'net and it looks like it's a >>> bug in OS X 10.6 Terminal (LC_CTYPE=UTF-8 is wrong). But it's working for >>> me - maybe it was fixed in an update - what is your system version? >>> >>> >>> On Mar 27, 2012, at 8:27 AM, Julian Bogdani wrote: >>> >>>> Hello and thank you for the help. >>>> I have an English system and checking with env I had correctly >>>> LC_CTYPE=UTF-8. >>>> Terminal preferences was correctly set. >>>> >>>> Adding export LC_ALL=en_US.UTF-8 did solve the problem. >>>> >>>> Thank you >>>> >>>> >>>> ----- >>>> Julian >>>> >>>> http://bradypus.net >>>> >>>> >>>> >>>> >>>> >>>> On 27 Mar 2012, at 15:16 , William Kyngesburye wrote: >>>> >>>>> I forgot to add a bash_profile example: >>>>> >>>>> export LC_ALL=en_US.UTF-8 >>>>> >>>>> substitute your language code for en_US. >>>>> >>>>> On Mar 27, 2012, at 8:11 AM, William Kyngesburye wrote: >>>>> >>>>>> Hmm, this is becoming quite an issue on non-English systems, I don't >>>>>> know why it started. Python expects the locale to be in the form >>>>>> language.encoding. ie english is "en_US.UTF-8". >>>>>> >>>>>> Normally the option in the Terminal to set this automatically takes care >>>>>> of this in the LANG variable, but Python checks LC_CTYPE and LC_ALL >>>>>> first and somehow one of those is getting set on non-english systems. >>>>>> >>>>>> The fix is to set LC_ALL in your ~/.bash_profile like LANG is set for >>>>>> your language (turn on the "Set locale env variables on startup" option >>>>>> in the advanced Settings in Terminal Preferences, then check "env" in a >>>>>> Terminal). >>>>>> >>>>>> Note: the Adobe Unit Types error is harmless noise, you just have a very >>>>>> old Photoshop installed. >>>>>> >>>>>> On Mar 27, 2012, at 2:55 AM, jbogdani wrote: >>>>>> >>>>>>> Hello, >>>>>>> I've a problem with GRASS on Snow Leopard. I've used successfully GRASS >>>>>>> in >>>>>>> the past, but it does not start in the GUI mode anymore. I can use it >>>>>>> throw >>>>>>> QGIS anyway. >>>>>>> Here is the error it produces on stratup: >>>>>>> >>>>>>> 2012-03-27 09:52:23.326 osascript[534:903] Error loading >>>>>>> /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe >>>>>>> Unit >>>>>>> Types: dlopen(/Library/ScriptingAdditions/Adobe Unit >>>>>>> Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image >>>>>>> found. >>>>>>> Did find: >>>>>>> /Library/ScriptingAdditions/Adobe Unit >>>>>>> Types.osax/Contents/MacOS/Adobe Unit >>>>>>> Types: no matching architecture in universal wrapper >>>>>>> osascript: OpenScripting.framework - scripting addition >>>>>>> "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable >>>>>>> handlers. >>>>>>> Python 2.6.1 found. >>>>>>> >>>>>>> And then, after hitting RETURN: >>>>>>> Traceback (most recent call last): >>>>>>> File >>>>>>> "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", >>>>>>> line 894, in <module> >>>>>>> GRASSStartUp = StartUp(0) >>>>>>> File >>>>>>> "/Users/Shared/unix/wxpython-snow/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core.py", >>>>>>> line 7981, in __init__ >>>>>>> File >>>>>>> "/Users/Shared/unix/wxpython-snow/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core.py", >>>>>>> line 7555, in _BootstrapApp >>>>>>> File >>>>>>> "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", >>>>>>> line 865, in OnInit >>>>>>> StartUp = GRASSStartup() >>>>>>> File >>>>>>> "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", >>>>>>> line 57, in __init__ >>>>>>> self.grassrc = self._readGisRC() >>>>>>> File >>>>>>> "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", >>>>>>> line 393, in _readGisRC >>>>>>> grassrc[key.strip()] = utils.DecodeString(val.strip()) >>>>>>> File >>>>>>> "/Users/Shared/src/GRASS/grass-6.4.2-snow/dist.i386-apple-darwin11.3.0/etc/wxpython/gui_modules/utils.py", >>>>>>> line 667, in DecodeString >>>>>>> File >>>>>>> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", >>>>>>> line 459, in getdefaultlocale >>>>>>> return _parse_localename(localename) >>>>>>> File >>>>>>> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", >>>>>>> line 391, in _parse_localename >>>>>>> raise ValueError, 'unknown locale: %s' % localename >>>>>>> ValueError: unknown locale: UTF-8 >>>>>>> Error in GUI startup. If necessary, please >>>>>>> report this error to the GRASS developers. >>>>>>> Switching to text mode now. >>>>>>> Hit RETURN to continue... >>>>>>> >>>>>>> >>>>>>> After this I can use GRASS only from terminal.... >>>>>>> Any help? >>>>>>>
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
