Opened 17 years ago

Closed 17 years ago

#581 closed Bugs (Works For Me)

Win32 windows_name() bug

Reported by: nobody Owned by: beman_dawes
Milestone: Component: filesystem
Version: None Severity:
Keywords: Cc:

Description

I have tried this with both Borland and MSVC ... trying
to instantiate a boost::filesystem::path instance and
getting the following error:

Invalid name "D:" in path "D:\".

One would figure that this should not happen, as that
is a valid Win32 path name. My guess is the problem is
the ":", since I tried "D\A", "D\A\B", "D\A\B\C", etc.
and did not have any problem with them.

Initially I thought is was my Borland compiler, but
when it did the same thing with MSVC, then I figured
that it was a bug somewhere in the library.

If someone could point me in the right direction as to
which particular file I need to look at I could
probably fix the issue myself, but I would prefer a
patch from one of the maintainers to keep the codebase
the same as everyone else.

Thanks.

William
william.clifford.mit@gmail.com

Change History (2)

comment:1 by beman_dawes, 17 years ago

Logged In: YES 
user_id=51042

Assuming your are using Boost version 1.33.1 or earlier, you
probably are not supplying the "native" constructor
argument. In any case, 1.34.0 handles the issue of native
versus generic paths quite differently. Check out the latest
from CVS.

On that basis, I'm closing the issue. If the situation is
otherwise, let me know and I'll reopen it.

Cheers,

--Beman

comment:2 by beman_dawes, 17 years ago

Status: assignedclosed
Note: See TracTickets for help on using tickets.