This is either a mistake on the part of the reporter or a total bozo bug
on Apple's part. I'd like to establish which.
Thanks,
Malcolm
--
I don't have a solution, but I admire your problem.
http://www.pointy-stick.com/blog/
> Can anybody using Apple's Leopard OS confirm #5846 exists by default?
>From what you describe, it looks as if Leopard is doing the correct
thing.
You mention in the ticket comments:
"""
This is really a bug in Leopard. UTF-8 doesn't look like a valid value
for the LANG environment variable. It should be something of the form
language[_territory][.codeset], where UTF-8 is only the codeset part.
"""
This is what I get from the terminal:
[stavros@Macintosh:~]$ echo $LANG
en_US.UTF-8
Which seems kosher (according to language[_territory][.codeset])
I don't have any custom setting in ~/.bashrc (or similar) that's
exporting $LANG into the environment, so ... if I'm not
misunderstanding what's going on here, it might be a mistake on the
poster's part.
-steve
Can anybody using Apple's Leopard OS confirm #5846 exists by default?
This is either a mistake on the part of the reporter or a total bozo bug
on Apple's part. I'd like to establish which.
echo $LANG gives en_US.UTF-8
but using both /usr/bin/python which is the one that came
with OSX Leopard, or using the MacPython downloaded
from www.python.org at the path
/Library/Frameworks/Python.framework/Versions/Current/bin/python
in both cases,
>>> import locale
>>> locale.getlocale()
outputs
(None, None)
--
Omnem crede diem tibi diluxisse supremum.
I too can confirm this.
echo $LANG gives en_US.UTF-8
but using both /usr/bin/python which is the one that came
with OSX Leopard, or using the MacPython downloaded
from www.python.org at the path
/Library/Frameworks/Python.framework/Versions/Current/bin/python
in both cases,
>>> import locale
>>> locale.getlocale()
outputs
(None, None)
using MacPython, I get
>>> import locale
>>> locale.getdefaultlocale()
(None, 'mac-roman')
using the /usr/bin/python that came with leopard though, I get
>>> import locale
>>> locale.getdefaultlocale()
('en_US', 'UTF8')
Ok, thanks.
I think we have enough feedback now, everybody. Thanks for the rapid
responses.
I was mostly interested in what LANG was set to; I already believe
Python's locale stuff works correctly. The links Karen found suggest
that it is a Leopard problem, but isn't to affect everybody and it is
possible to work around. So annoying, but not a showstopper.
Malcolm
--
No one is listening until you make a mistake.
http://www.pointy-stick.com/blog/