[Boost-bugs] [Boost C++ Libraries] #5152: Inconsistent behavior of path.native() function

Subject: [Boost-bugs] [Boost C++ Libraries] #5152: Inconsistent behavior of path.native() function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-02 22:27:43


#5152: Inconsistent behavior of path.native() function
-------------------------------------+--------------------------------------
 Reporter: lcarreon@… | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 Hi,

 I have built the 32-bit and 64-bit Boost libraries on Windows, Fedora
 Linux and Solaris 10 x86 using the following options:

         runtime-link=shared
         link=shared

 I am noticing some difference in behavior with the path.native() function
 when I send it to a stream. To illustrate the problem, I'm attaching my
 test program test_path.cpp.

 Here's the result of test_path.cpp on Windows:

   Current directory path:

     generic_string = "C:/Devel/projects/compiler_tests/test_path"
     native = "C:\Devel\projects\compiler_tests\test_path"

   Parent of current directory path:

     generic_string = "C:/Devel/projects/compiler_tests"
     native = "C:\Devel\projects\compiler_tests"

 Here's the result of test_path.cpp on Fedora Linux:

   Current directory path:

     generic_string = "/home/Leo/Devel/projects/compiler_tests/test_path"
     native = /home/Leo/Devel/projects/compiler_tests/test_path

   Parent of current directory path:

     generic_string = "/home/Leo/Devel/projects/compiler_tests"
     native = /home/Leo/Devel/projects/compiler_tests

 Here's the result of test_path.cpp on Solaris 10 x86:

   Current directory path:

     generic_string = "/home/Leo/Devel/projects/compiler_tests/test_path"
     native = /home/Leo/Devel/projects/compiler_tests/test_path

   Parent of current directory path:

     generic_string = "/home/Leo/Devel/projects/compiler_tests"
     native = /home/Leo/Devel/projects/compiler_tests

 Please notice that in the 3 sets of results above, the Windows results
 show the native path enclosed in double quotes while it isn't on Fedora
 Linux and Solaris 10 x86.

 Was this difference in behavior intentional or is it a bug?

 Regards,
 Leo

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