[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*
Ronald Oussoren
report at bugs.python.org
Tue Feb 3 19:48:17 CET 2009
Ronald Oussoren <ronaldoussoren at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5143>
_______________________________________
More information about the Python-bugs-list
mailing list