apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: unix/tempdir.c
Date Tue, 22 Sep 2009 16:25:47 GMT
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.

Mime
View raw message