[issue28200] Windows: path_converter() leaks memory for Unicode filenames

STINNER Victor report at bugs.python.org
Mon Sep 19 05:59:58 EDT 2016


STINNER Victor added the comment:

> path_converter.patch LGTM for 3.6 (and 3.7, 3.8),

Ok, I pushed my simple fix.

Feel free to modify the code if you see a better way to encode paths on Windows ;-) But it's a much larger project, and I'm not really interested to jump again in this silly deprecated APIs :-) It seems like the status quo is that Py_UNICODE is going to stay longer than expected and since it "just works", nobody really cares :-)

I close this issue since the initial bug (memory leak) is now fixed.

----------
resolution:  -> fixed
status: open -> closed

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


More information about the Python-bugs-list mailing list