[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

Daniel Stutzbach report at bugs.python.org
Thu Apr 1 21:24:03 CEST 2010


Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:

Attached is a file that reliably produces the "More data is available" error from _winreg.EnumValue in Python 2.6.

The script triggers the error via a race condition, by modifying the value after PyEnumValue() calls RegQueryInfoKey() but before it calls RegEnumValue().  I don't know if that's what caused the original problem for my end-user, but it certainly is one way to trigger the problem.

I can work on a patch next week for a proper test case and to fix PyEnumValue().

----------
Added file: http://bugs.python.org/file16728/more_data_is_available.py

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


More information about the Python-bugs-list mailing list