This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients brian.curtin, kzmi, ocean-city, tim.golden, vstinner
Date 2010-09-24.16:56:27
SpamBayes Score 7.959597e-08
Marked as misclassified No
Message-id <1285347389.42.0.696166592125.issue9937@psf.upfronthosting.co.za>
In-reply-to
Content
This happens because RegQueryInfoKeyA returns maximum value
name length not in *Ansi* characters but in *Unicode" characters.
I don't know clue why.

http://msdn.microsoft.com/en-us/library/ms724902%28VS.85%29.aspx

In multibyte environment, 2 or 3 bytes characters are
mapped to one size unicode. So usually, the length of *Ansi*
characters are larger than or equals to the length of *Unicode*
characters. If every Ansi characters are mapped to one size
Unicode, lengthes are equal, so probably this issue won't happen.

I'll attach the patch to fix this issue. But be care, this is not 
tested so densely. At least, the script to reproduce this issue
ran fine.
History
Date User Action Args
2010-09-24 16:56:29ocean-citysetrecipients: + ocean-city, vstinner, tim.golden, brian.curtin, kzmi
2010-09-24 16:56:29ocean-citysetmessageid: <1285347389.42.0.696166592125.issue9937@psf.upfronthosting.co.za>
2010-09-24 16:56:28ocean-citylinkissue9937 messages
2010-09-24 16:56:27ocean-citycreate