Re: [Boost-bugs] [Boost C++ Libraries] #366: handle double '/' in the boost::filesystem

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #366: handle double '/' in the boost::filesystem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-07-06 01:44:37


#366: handle double '/' in the boost::filesystem
-------------------------------+--------------------------------------------
  Reporter: rsrus | Owner: nobody
      Type: Feature Requests | Status: assigned
 Milestone: | Component: filesystem
   Version: None | Severity: Showstopper
Resolution: None | Keywords:
-------------------------------+--------------------------------------------
Changes (by dave):

 * cc: bdawes_at_[hidden] (added)
  * component: None => filesystem
  * severity: => Showstopper

Old description:

> {{{
> Hi.
>
> Sometimes I make some path by hand. For example
>
> std::string str = "./";
> //... some code ....
> std::string str2 = str + "/path/to/file";
>
> The result is ".//path/to/file". If I try to make path
> from it:
>
> boost::filesystem::path fs_path2(str2, fs::native);
>
> I got exception. Is it possible to correct function
>
> path::m_path_append
>
> to handle this situation (double/triple/... separator
> in the middle of string)?
> }}}

New description:

 {{{
 Hi.

 Sometimes I make some path by hand. For example

   std::string str = "./";
   //... some code ....
   std::string str2 = str + "/path/to/file";

 The result is ".//path/to/file". If I try to make path
 from it:

    boost::filesystem::path fs_path2(str2, fs::native);

 I got exception. Is it possible to correct function

    path::m_path_append

 to handle this situation (double/triple/... separator
 in the middle of string)?
 }}}

Comment:

 Can't assign this to Beman until he logs into Trac once.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/366#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC