Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2005-05-25 21:18:41


"David Daeschler" <daveregs_at_[hidden]> wrote in message
news:d72il3$ukb$1_at_sea.gmane.org...
> Hello,
>
>>From my application there may come a time when I want to take a directory
>>or
> file name from a user. In windows, there is a file selection box that can
> return the full path of a file that the user chooses. The full path in
> windows includes the drive name with a colon and then a backslash ( c:\ ).
> I can not seem to get the boost filesystem library to accept this as a
> valid
> path even with the native checker. I also ran the test provided with
> boost
> for paths and it failed. The output is given below.
>
> $ bfs
> Platform is Windows
> initial_path().string() is
> "g:/boostfs"
> initial_path().native_file_string() is
> "g:\boostfs"
> d:/srcbuilds/boost_1_32_0/boost/test/minimal.hpp(129): exception
> "std::exception
> : boost::filesystem::path: invalid name "c:" in path: "c:/"" caught in
> function:
> 'int main(int, char**)'
>
> **** Testing aborted.
> **** 1 error detected
>
> It appears that the colon is in the list of invalid characters for a file
> and it is throwing things off.
>
> My version of Boost was compiled with MinGW under Windows XP SP2 using the
> command line bjam "-sTOOLS=mingw" stage
>
> If I am missing something please let me know.

I don't know what the problem is. Two different regression testers test
mingw, and filesystem passes for both on all tests.

If you haven't figured out what is wrong by tomorrow, let me know and I'll
try to reproduce the problem. (The machine I'm writing this on isn't set up
for development, so I can't test it right now.)

--Beman


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