Message218880
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). |
|
Date |
User |
Action |
Args |
2014-05-21 15:59:29 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, scoder, vstinner, r.david.murray, python-dev, zach.ware |
2014-05-21 15:59:29 | serhiy.storchaka | set | messageid: <1400687969.23.0.660800398211.issue20035@psf.upfronthosting.co.za> |
2014-05-21 15:59:29 | serhiy.storchaka | link | issue20035 messages |
2014-05-21 15:59:28 | serhiy.storchaka | create | |
|