This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients python-dev, r.david.murray, scoder, serhiy.storchaka, terry.reedy, vstinner, zach.ware
Date 2014-05-21.15:59:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400687969.23.0.660800398211.issue20035@psf.upfronthosting.co.za>
In-reply-to
Content
I want to get this too, but perhaps there are some issues in a code.

1. Py_GetPrefix() returns wchar_t* string with maximal length MAXPATHLEN (defined in Include/osdefs.h as 256 on Windows). Then wcstombs() converts it to char* string. Are you sure that MAX_PATH (defined as 260 on Windows) is enough for converted string? I afraid that for multi-byte encoding it can be 2*MAXPATHLEN or even 3*MAXPATHLEN bytes.

2. After converting _tcl_library contains a path in locale encoding. And _putenv() works with it. I'm not sure, but I afraid that Tcl_SetVar() can expect UTF-8 encoded string. Please test with prefix containing non-ASCII characters (or even better with prefix containing East-Asian characters on East-Asian Windows).
History
Date User Action Args
2014-05-21 15:59:29serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, scoder, vstinner, r.david.murray, python-dev, zach.ware
2014-05-21 15:59:29serhiy.storchakasetmessageid: <1400687969.23.0.660800398211.issue20035@psf.upfronthosting.co.za>
2014-05-21 15:59:29serhiy.storchakalinkissue20035 messages
2014-05-21 15:59:28serhiy.storchakacreate