Author amaury.forgeotdarc
Recipients AndrewZiem, amaury.forgeotdarc
Date 2009-07-09.09:40:33
SpamBayes Score 0.000161052
Marked as misclassified No
Message-id <>
It seems that regedit itself cannot handle these values, see how users
have to edit data in binary mode to enter empty strings:

Here is a script that shows the problem: the value is returned truncated
before the empty string.

from _winreg import *
test_key_name = "SOFTWARE\\Python Registry Test Key - Delete Me"
hkey = CreateKey(HKEY_CURRENT_USER, test_key_name)
SetValueEx(hkey, "Multi", 0, REG_MULTI_SZ,
           ['test', 'with', '', 'an', 'empty', 'line'])
print QueryValueEx(hkey, "Multi")
Date User Action Args
2009-07-09 09:40:35amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, AndrewZiem
2009-07-09 09:40:35amaury.forgeotdarcsetmessageid: <>
2009-07-09 09:40:33amaury.forgeotdarclinkissue6443 messages
2009-07-09 09:40:33amaury.forgeotdarccreate