[issue8334] winreg.QueryValue should return bytes, not unicode

2010-04-07 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Jumped the gun here. RegQueryValue returns ERROR_DATA_INVALID if the value isn't a string, so converting to Unicode is OK. -- status: open -> closed ___ Python tracker

[issue8334] winreg.QueryValue should return bytes, not unicode

2010-04-07 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8334] winreg.QueryValue should return bytes, not unicode

2010-04-07 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Extension Modules -Library (Lib) nosy: +brian.curtin priority: -> normal ___ Python tracker ___

[issue8334] winreg.QueryValue should return bytes, not unicode

2010-04-07 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : The Windows RegQueryValue function returns a registry value without returning the corresponding type information (e.g., REG_SZ for string, REG_BINARY for binary data, REG_DWORD for a 32-bit number, etc.). The corresponding wrapper winreg.QueryValue curren