Ronald Oussoren <ronaldousso...@mac.com> added the comment:

The quick fix is to convert "p" to a wchar_t (using mbstowcs), see 
patch-mbstowcs.txt. 

However, I don't think this is the right fix. AFAIK this environment 
variable is only used by .app bundles created by bundlebuilder.py which 
is no longer part of the standard library. 

IDLE.app uses the same mechanism, but that's not needed there and can be 
removed without problems. The file patch-remove-PYTHONEXECUTABLE.txt 
removed the environment variable, and results in a working IDLE.app on 
my machine (IDLE launches with a working shell window and I can open 
python files).

I'd prefer to apply patch-remove-PYTHONEXECUTABLE.txt on the trunk, the 
more limited fix can be applied on the 3.0.x branch (although I have no 
idea if that branch even works correctly on OSX)

Added file: http://bugs.python.org/file12929/patch-mbstowcs.txt

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5143>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to