[issue25778] winreg.EnumValue does not truncate strings correctly

Eryk Sun report at bugs.python.org
Wed Dec 2 10:52:15 EST 2015


Eryk Sun added the comment:

Based on matplotlib's win32InstalledFonts function [1], I created a small test to check the data strings returned by winreg.EnumValue for the presence of null characters. I tested on Windows 7 and 10 but couldn't reproduce the problem. Please run nullcheck.py to check the results on your system.

[1]: https://github.com/matplotlib/matplotlib/blob/v1.5.0/lib/matplotlib/font_manager.py#L200

----------
nosy: +eryksun
Added file: http://bugs.python.org/file41208/nullcheck.py

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


More information about the Python-bugs-list mailing list