<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>So this is getting narrowed down. Another question is does this just pop up as a bug with effects on the GUI in Lion or does it happen in Snow Leopard too? So far my tests have not been extensive enough.</div><div><br></div><div>2 Spanish computers with Lion: bad</div><div>1 English computer with Lion: good</div><div>1 English computer with Snow Leopard: good</div><div><br></div><br><div><div>On Jul 26, 2012, at 12:00 PM, <<a href="mailto:grass-dev-request@lists.osgeo.org">grass-dev-request@lists.osgeo.org</a>></div><div> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Lucida Grande'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); "><b>From:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; ">William Kyngesburye <<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); "><b>Date:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; ">July 26, 2012 6:26:47 AM MST<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); "><b>To:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; ">Michael Barton <<a href="mailto:Michael.Barton@asu.edu">Michael.Barton@asu.edu</a>>, Agustin Angel Diez Castillo <<a href="mailto:agustin.diez@uv.es">agustin.diez@uv.es</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); "><b>Cc:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; ">Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>>, Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>>, GRASS developers grass-developers <<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); "><b>Subject:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; "><b>Re: [GRASS-dev] more on locale problem</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); "><b>Reply-To:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; ">William Kyngesburye <<a href="mailto:kyngchaos@kyngchaos.com">kyngchaos@kyngchaos.com</a>><br></span></div><br><br>As you mentioned Michael, there was discussion of this problem a few times in the past.<br><br>The problem setting is not LANG, though, it's LC_CTYPE.  The system is somehow setting that to "UTF-8", and Python checks LC_CTYPE (and LC_ALL next) before it checks LANG, so setting LANG in GRASS won't help, as Agustin found.<br><br><br>On Jul 26, 2012, at 5:03 AM, Agustin Angel Diez Castillo wrote:<br><br><blockquote type="cite">Michael and others,<br></blockquote><blockquote type="cite">Michael's 6.4.3 menus aren't working here, I did try adding<span class="Apple-converted-space"> </span><br></blockquote><blockquote type="cite">en_US.UTF-8<br></blockquote><blockquote type="cite">to .grassrc6 but the complaints are the same<br></blockquote><blockquote type="cite">############################<br></blockquote><blockquote type="cite">ERROR: unknown locale: UTF-8<br></blockquote><blockquote type="cite">ERROR: unknown locale: UTF-8<br></blockquote><blockquote type="cite">ERROR: unknown locale: UTF-8<br></blockquote><blockquote type="cite">ERROR: unknown locale: UTF-8<br></blockquote><blockquote type="cite">ERROR: unknown locale: UTF-8<br></blockquote><blockquote type="cite">ERROR: unknown locale: UTF-8<br></blockquote><blockquote type="cite">2012-07-26 11:56:43.011 Python[1916:e0f] CFURLCreateWithString was passed this invalid URL string: '/System/Library/CoreServices/CommonCocoaPanels.bundle' (a file system path instead of an URL string). The URL created will not work with most file URL functions. CFURLCreateWithFileSystemPath or CFURLCreateWithFileSystemPathRelativeToBase should be used instead.<br></blockquote><blockquote type="cite">############################<br></blockquote><blockquote type="cite">by the way my system preferences are set to english but the region is set to Spain.<br></blockquote><blockquote type="cite">cli is working<br></blockquote><blockquote type="cite">As you know in R the language is forced with<br></blockquote><blockquote type="cite">defaults write org.R-project.R force.LANG en_US.UTF-8<br></blockquote><blockquote type="cite">Is there something similar in GRASS?<br></blockquote><blockquote type="cite">A<br></blockquote><blockquote type="cite">On Thursday, July 26, 2012 08:16 CEST, Michael Barton <<a href="mailto:Michael.Barton@asu.edu">Michael.Barton@asu.edu</a>> wrote:<span class="Apple-converted-space"> </span><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">So I am now completely baffled as to why GRASS is not working on my colleague's computer. it is a pretty new MacBook (last 6 months) and he has not installed much on it--Office, Mendeley. It is running the most current version of Lion (10.7.4).<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">There are repeated problems with locale on it. Here is an example that works fine on my computer also running Lion.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">import locale<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">locale.getdefaultlocale()<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Traceback (most recent call last):<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">File "<stdin>", line 1, in <module><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 496, in getdefaultlocale<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 428, in _parse_localename<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ValueError: unknown locale: UTF-8<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I don't know where it is getting UTF-8. The GUI code in GRASS calls the language en_ES.UTF-8, but this is running Python outside of GRASS. I've tried setting locale to es_EN, and to C. But we still get this error when locale.getdefaultlocale() is run in wx GUI.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Any ideas?????<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Michael<br></blockquote></blockquote><br>-----<br>William Kyngesburye <kyngchaos*at*kyngchaos*dot*com><br><a href="http://www.kyngchaos.com/">http://www.kyngchaos.com/</a><br><br>First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?<br>Second Pogril: I don't know.  Why IS life like sticking your head in a bucket filled with hyena offal?<br>First Pogril: I don't know either.  Wretched, isn't it?<br><br>-HitchHiker's Guide to the Galaxy<br><br><br></span></blockquote></div><br></body></html>