[Boost-bugs] [Boost C++ Libraries] #4329: filesystem::basename is completely erratic

Subject: [Boost-bugs] [Boost C++ Libraries] #4329: filesystem::basename is completely erratic
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-09 21:10:38


#4329: filesystem::basename is completely erratic
---------------------------------------------------+------------------------
 Reporter: Richard B. Kreckel <kreckel@…> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: filesystem
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 The attached program shows that basename is broken.
 I've tried 1.33.1, where it prints (as I would have expected):

 a a b b c c d d e e

 Using 1.35.0, 1.40.0, 1.42.0, it prints:

 a b / c d e

 Observe the exceptional behavior of basename("a/b/") returning "/".

 IMHO, basename's behaviour shouldn't differ from Posix's basename.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4329>
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:50:03 UTC