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 <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