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

2010-04-07 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: I just found a one line example of the problem: EnumValue(HKEY_PERFORMANCE_DATA, 0) Traceback (most recent call last): File stdin, line 1, in module WindowsError: [Error 234] More data is available Other functions are also

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

2010-04-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Great analysis! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___ ___

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

2010-04-07 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- assignee: - brian.curtin priority: - normal stage: - needs patch versions: -Python 2.4, Python 2.5, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810

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

2010-04-07 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- assignee: brian.curtin - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___ ___ Python-bugs-list

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

2010-04-07 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: Added file: http://bugs.python.org/file16802/winreg_test.pach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___

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

2010-04-07 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: -- keywords: +patch Added file: http://bugs.python.org/file16803/winreg.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810

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

2010-04-07 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: Removed file: http://bugs.python.org/file16728/more_data_is_available.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___

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

2010-04-07 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: Removed file: http://bugs.python.org/file16729/more_data_is_available2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___

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

2010-04-07 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: I've uploaded two patches (against trunk): one to add test cases that demonstrate this bug and another to fix the bug. -- ___ Python tracker rep...@bugs.python.org

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

2010-04-02 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: If this doesn't relate to multibyte strings anymore, but just to long strings then I'd open new bug. If even regedit fails to query then maybe its WinAPI flaw? Maybe it will worth to try ctypes. --

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

2010-04-02 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: It was never 100% clear that it ever related to multi-byte strings, so (as the original reporter) I'd prefer to continue using this bug and just update the title to: _winreg.EnumValue sometimes raises WindowsError (More data

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

2010-04-02 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: I just wrote a C program that can read the long key name just fine, so it's not a Windows API bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810

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

2010-04-01 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I propose to close this as invalid, because the bug with _winreg.EnumValue can not be confirmed. However, it seems to be impossible to return unicode data from _winreg.EnumKey, and this deserves a new bug. -- nosy: +techtonik

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

2010-04-01 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___ ___ Python-bugs-list mailing

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

2010-04-01 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: Added file: http://bugs.python.org/file16726/issue2810_registry.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___

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

2010-04-01 Thread Daniel Stutzbach
Daniel Stutzbach dan...@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

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

2010-04-01 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Here's another script that causes a More data is available error. This one creates a key with a name that's exactly 256 characters long. (The Windows Registry Editor can't display the key either) I'm testing this on XP.

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

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: IIUC, no fix for this bug has been proposed, so the issue is no candidate for 2.5.3. -- versions: -Python 2.5.3 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2810

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

2008-10-07 Thread Daniel Stutzbach
Changes by Daniel Stutzbach [EMAIL PROTECTED]: -- versions: +Python 2.5.3 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2810 ___ ___ Python-bugs-list

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

2008-10-02 Thread Erik Nolte
Erik Nolte [EMAIL PROTECTED] added the comment: To reproduce on Windows XP with Python 2.4, 2.5, and 2.6: 1. Import issue_2810.reg (it creates two keys under HKCU\PythonTestUnicodeKeys: one with a one byte unicode char in the key, the other with multiple 2-byte unicode chars) 2. Run the

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

2008-05-11 Thread Daniel Stutzbach
Daniel Stutzbach [EMAIL PROTECTED] added the comment: After several failed attempts at making a test case, and stepping through C code with a debugger, I see that my initial diagnose is quite wrong. RegQueryInfoKey *does* return the sizes in units of bytes (even though the Microsoft

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

2008-05-10 Thread Daniel Stutzbach
New submission from Daniel Stutzbach [EMAIL PROTECTED]: _winreg.EnumValue raises a WindowsError (More data is available) if the registry data includes multibyte unicode characters. Inspecting PyEnumValue in _winreg.c, I believe I see the problem. The function uses RegQueryInfoKey to determine

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

2008-05-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Is that for Python 2.5 or 3.0? -- nosy: +loewis __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2810 __ ___

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

2008-05-10 Thread Daniel Stutzbach
Daniel Stutzbach [EMAIL PROTECTED] added the comment: The bug is in both. On Sat, May 10, 2008 at 12:52 PM, Martin v. Löwis [EMAIL PROTECTED] wrote: Martin v. Löwis [EMAIL PROTECTED] added the comment: Is that for Python 2.5 or 3.0? -- nosy: +loewis

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

2008-05-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Can you please provide a test case then? The 3.0 code doesn't use RegQueryInfoKey, but RegQueryInfoKeyW. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2810 __