Boost logo

Boost :

Subject: Re: [boost] [filesystem] temp_directory_path() behavior on Windows
From: Beman Dawes (bdawes_at_[hidden])
Date: 2015-02-04 17:46:13


On Wed, Feb 4, 2015 at 4:57 PM, Gavin Lambert <gavinl_at_[hidden]> wrote:
> On 5/02/2015 04:08, Niall Douglas wrote:
>>
>> On 4 Feb 2015 at 14:55, Domagoj Saric wrote:
>>
>>> 1) GetTempPath() is not deprecated (which I would take to mean that the
>>> 'manufacturer of the OS' holds this function to be sufficient for 'most
>>> users')
>>
>>
>> That's a reasonable point. Apart from its hardcoded 260 char limit.
>
>
> Windows in general does not react well to paths exceeding this limit
> anywhere.

The problem reported by the original ticket was that for GetTempPathW
the limit is 130 characters, and that is way too small for some
applications. And, yes, I did add test code that verified GetTempPathW
fails at roughly 130 characters.

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk