Hirokazu Yamamoto <ocean-c...@m2.ccsnet.ne.jp> added the comment:

This happens because RegQueryInfoKeyA returns maximum value
name length in *Unicode* characters. Strange API.

lpcMaxValueNameLen [out, optional]

    A pointer to a variable that receives the size of the key's longest value 
name, in Unicode characters. The size does not include the terminating null 
character. This parameter can be NULL.

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

The Unicode length equals to Ansi length in ascii locale,
so this may not happen where people live in ascii locale.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9937>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to