[New-bugs-announce] [issue3813] cannot lanch python.exe via symbolic link if HAVE_BROKEN_MBSTOWCS

Hirokazu Yamamoto report at bugs.python.org
Tue Sep 9 10:39:05 CEST 2008


New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:

On cygwin, py3k aborts if lanches it via symbolic link.

//////////// message beg /////////////////////////

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: can't initialize sys standard streams
ImportError: No module named encodings.utf_8
Aborted (core dumped)

//////////// message end  /////////////////////////

This is because mbstowcs() on cygwin is broken, so _Py_wreadlink() in
Modules/getpath.c is also broken. I'll attach two patches to fix this. I
don't know which is better.

----------
components: Interpreter Core
files: py3k_getpath_v1.patch
keywords: patch
messages: 72831
nosy: ocean-city
severity: normal
status: open
title: cannot lanch python.exe via symbolic link if HAVE_BROKEN_MBSTOWCS
versions: Python 3.0
Added file: http://bugs.python.org/file11432/py3k_getpath_v1.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3813>
_______________________________________


More information about the New-bugs-announce mailing list