[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I committed the patch in r84956. Thank you for testing. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-21 Thread Brian Curtin
Brian Curtin added the comment: The patch looks ok to me. I tested it on Server 2003 (same as XP) and it worked fine in addition to Windows 7. -- ___ Python tracker ___

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Only if given a revised 32bit binary (and revised test_os.py). I expect someone else who can will see this. -- ___ Python tracker ___ _

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Has the patch been tested on WinXP to be sure it does not introduce a > bug for this? No. Can you? -- ___ Python tracker ___

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The bug appears to really be limited to Vista?/W7. On WinXP, >>> os.path.exists('c:/programs/python31') True >>> os.path.exists(b'c:/programs/python31') True Has the patch been tested on WinXP to be sure it does not introduce a bug for this? -- nosy: +

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-20 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith, jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : Under Windows 7, there is another path in posixmodule.c for stat() (because of the link dereferencing feature, it seems). This path fails for the bytes version. It turns out that GetFinalPathNameByHandleA returns a value which is one byte too small (while G