[issue2722] os.getcwd fails for long path names on linux

2008-05-10 Thread Neil Blakey-Milner
Neil Blakey-Milner <[EMAIL PROTECTED]> added the comment: Here's a patch to add a test that fails with Python 2.5 on OS X, but passes with either of these patches. Added file: http://bugs.python.org/file10250/python-getcwd-test_longpathnames.patch ___

[issue2722] os.getcwd fails for long path names on linux

2008-05-10 Thread Neil Blakey-Milner
Changes by Neil Blakey-Milner <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10241/python-getcwd-malloconly.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2722] os.getcwd fails for long path names on linux

2008-05-10 Thread Neil Blakey-Milner
Neil Blakey-Milner <[EMAIL PROTECTED]> added the comment: This affects OS X too. I'm attaching two patches - one uses malloc to build a bigger string if the existing implementation returns ERANGE, and the other one uses malloc from the start. This was done on the theory that stack