Boost logo

Boost :

Subject: Re: [boost] [filesystem] basic_path::operator>> issue for paths with spaces
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2008-09-22 14:41:41


On Mon, Sep 22, 2008 at 14:14, Johan RÃ¥de <rade_at_[hidden]> wrote:
> When a path that contains spaces is extracted
> from a text file using basic_path::operator>>,
> then the path is truncated at the first space.
>
> Maybe basic_path::operator<< should put quotes around the path
> and basic_path::operator>> strip the quotes (if any).
>

That sounds good, but how would it handle paths with "s in them?

$ touch '"'
$ rm '"'
rm: remove regular empty file `"'? y
$ touch '\'
$ rm '\'
rm: remove regular empty file `\\'? y

~ Scott


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