apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jagunet.com>
Subject Re: unix/tempdir.c
Date Tue, 22 Sep 2009 16:42:52 GMT

On Sep 22, 2009, at 12:25 PM, William A. Rowe, Jr. wrote:

> Jim Jagielski wrote:
>> While looking at a different codebase, I was made (re)aware that the
>> ordering for APR to find the temp directory uses the following  
>> ordering
>> in env-vars:
>>
>>          $TMP
>>          $TEMP
>>          $TMPDIR
>>
>> with the rationale that "this is how Python 2.2 does it"
>>
>> But really, the canonical var to use is $TMPDIR, and looking
>> over Python 2.6 (at least) does revise the ordering to be what
>> "should" be expected....
>>
>>    for envname in 'TMPDIR', 'TEMP', 'TMP':
>>        dirname = _os.getenv(envname)
>>        if dirname: dirlist.append(dirname)
>>
>>
>> Anyone have heartburn if I "fix" tempdir.c ?
>
> In 1.3, hmmm... Sounds like a big leap around expectations.  For  
> future
> release minor or major only, it sounds like a good fix.
>

I'm looking over the docs to see if we actually document this
anyplace... Although Python 2.2 may have used that order, 1.5
didn't nor does 2.6... But agree that the change requires
documenting.

Mime
View raw message