[Pythonmac-SIG] MacPython2.3 - locale problem in Idle
Ronald Oussoren
oussoren at cistron.nl
Wed Aug 6 21:27:44 EDT 2003
On Wednesday, 6 August, 2003, at 18:48, Andre Posumentov wrote:
> Hi all,
>
> On a clean install of Jack's latest MacPython 2.3, together with
> everything listed in the Package Manager, on OS X 10.2.6:
>
> I encounter a problem starting Idle. The Dock icon bounces a couple
> of times and then silently dies.
>
> If I start Idle from the command line (inside 'IDLE.app/Contents'), I
> see the following:
>
> %% ./MacOS/IDLE
> Traceback (most recent call last):
> File "Resources/__argvemulator_idle", line 4, in ?
> execfile(os.path.join(os.path.split(__file__)[0], "idle"))
> File "Resources/idle", line 4, in ?
> import idlelib.PyShell
> File
> "/Applications/MacPython-2.3/IDLE.app/Contents/Resources/idlelib/
> PyShell.py", line 22, in ?
> from EditorWindow import EditorWindow, fixwordbreaks
> File
> "/Applications/MacPython-2.3/IDLE.app/Contents/Resources/idlelib/
> EditorWindow.py", line 39, in ?
> class EditorWindow:
> File
> "/Applications/MacPython-2.3/IDLE.app/Contents/Resources/idlelib/
> EditorWindow.py", line 43, in EditorWindow
> from IOBinding import IOBinding
> File
> "/Applications/MacPython-2.3/IDLE.app/Contents/Resources/idlelib/
> IOBinding.py", line 31, in ?
> locale.setlocale(locale.LC_CTYPE, "")
> File
> "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
> locale.py", line 381, in setlocale
> return _setlocale(category, locale)
> locale.Error: locale setting not supported
>
> Can anyone tell me whether this is likely to be a problem with my
> machine configuration, or a bug? The fact that I seem to be the only
> person reporting this would seem to indicate that it's the former -
> but I'm baffled as to the possible cause. I'd be eternally grateful
> for any insights.
What is your language setting? I can reproduce this problem if I set
the environment variable LANG to an unsupported value.
Ronald
More information about the Pythonmac-SIG
mailing list