Eryk Sun added the comment:

The current test works for 3.x because we keep the full string length via 
PyUnicode_AsWideCharString(value, &len) when creating a REG_SZ value. OTOH, 2.x 
Py2Reg gets the length via strlen. I'd prefer to make this consistent with 3.x 
by using the full string length from PyString_AsStringAndSize. Expanding the 
range of supported values is less disruptive to existing code.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25778>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to