[issue1342] Crash on Windows if Python runs from a directory with umlauts

Christian Heimes report at bugs.python.org
Tue Nov 13 16:37:47 CET 2007


Christian Heimes added the comment:

I like to move _PyExc_Init() before _PySys_Init() and set sys.prefix,
exec_prefix and executable with PyUnicode_DecodeFSDefault().

Without the changes Python is seg faulting on Windows when the path
contains non ASCII chars. With the patch it is failing with a fatal
error which is a tiny bit nicer.

Added file: http://bugs.python.org/file8741/py3k_win_nonascii.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1342>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py3k_win_nonascii.patch
Type: text/x-diff
Size: 1479 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071113/de1942fb/attachment.patch 


More information about the Python-bugs-list mailing list