[issue9937] _winreg.EnumValue causes MemoryError

2022-01-07 Thread Eryk Sun
Eryk Sun added the comment: > Did anyone reproduce on python3.X? In principle, winreg should not have a problem in 3.x because it only uses the UTF-16 wide-character API. -- nosy: +eryksun stage: -> resolved status: pending -> closed ___ Python

[issue9937] _winreg.EnumValue causes MemoryError

2022-01-06 Thread Irit Katriel
Irit Katriel added the comment: > I can reproduce the issue on python2.x. I cannot on python3.x. Did anyone reproduce on python3.X? Why are versions 3.4/3.5 selected? -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Pyt

[issue9937] _winreg.EnumValue causes MemoryError

2019-04-26 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue9937] _winreg.EnumValue causes MemoryError

2014-07-09 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue9937] _winreg.EnumValue causes MemoryError

2014-07-09 Thread Mark Lawrence
Mark Lawrence added the comment: Does anyone wish to follow this up as I no longer run 2.7? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-27 Thread STINNER Victor
STINNER Victor added the comment: Can't we use RegEnumValueW and RegQueryInfoKeyW? -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-27 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I've withdrew my patch... It has still problem, and I cannot fix it yet. I suppose option 2 is easy. ANSI API's limitation makes it harder to implement correctly. -- ___ Python tracker

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-27 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file19021/py27_fix_winreg_EnumValue_op1.patch ___ Python tracker ___ ___ P

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-27 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file18999/py27_winreg_EnumValue.patch ___ Python tracker ___ ___ Python-bug

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I shall create unit test later. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, my patch didn't pass test_dynamic_key(test_winreg). (Apologize for not testing on unit test) RegEnumValueA and RegQueryInfoKeyA always returned 0 for required data size if target is HKEY_PERFORMANCE_DATA. The possible fixes I can imagine are... 1.

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Again, I'm not sure this is right fix. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: 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 char

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-24 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- Removed message: http://bugs.python.org/msg117293 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I can reproduce the issue on python2.x. I cannot on python3.x. -- nosy: +ocean-city ___ Python tracker ___ __

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-24 Thread Brian Curtin
Brian Curtin added the comment: I'm not able to reproduce any MemoryError on 2.6, 2.7, or 3.2 on Windows 7 using your registry data and test script. -- ___ Python tracker ___ __

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, haypo, tim.golden versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-24 Thread Iwasa Kazmi
Iwasa Kazmi added the comment: Added py file to reproduce. -- Added file: http://bugs.python.org/file18994/test.py ___ Python tracker ___

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-24 Thread Iwasa Kazmi
Iwasa Kazmi added the comment: Added sample registory data file. -- Added file: http://bugs.python.org/file18993/fonts.reg ___ Python tracker ___

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-24 Thread Iwasa Kazmi
New submission from Iwasa Kazmi : _winreg.EnumValue causes MemoryError if the name of the value contains multibyte unicode characters. I'm using 2.6.6. I think it is relevant to Isssue #2810. -- components: Windows messages: 117264 nosy: kzmi priority: normal severity: normal status: o