[issue25778] winreg.EnumValue does not truncate strings correctly
random832
report at bugs.python.org
Thu Dec 3 00:33:11 EST 2015
random832 added the comment:
> I don't see why the original issue with matplotlib would only happen with Python 3 and not Python 2, though.
Is it possible that Python 2 is using a non-unicode Windows API to get the values, and the non-unicode API is converting the string (which is, of course, in UTF-16 in the registry itself) in a way that ignores characters after the first null? (And presumably likewise after the first double null in a REG_MULTI_SZ)
This would be a pretty strong argument that embedded nulls aren't meant to be acceptable in REG_SZ values (as anything other than ignored garbage).
----------
nosy: +random832
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25778>
_______________________________________
More information about the Python-bugs-list
mailing list