[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 memory
use would be better/more efficient.  However, based on testing, there's
no real difference - 16.8usec vs. 17usec - on a rarely-used function.

--
keywords: +patch
nosy: +nbm
versions: +Python 2.5
Added file: http://bugs.python.org/file10240/python-getcwd-dual-strategy.patch

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2722>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/issue2722>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2722>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com