Re: [Boost-bugs] [Boost C++ Libraries] #8930: boost::path::root_directory() throws locale::facet::_S_create_c_locale name not valid

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8930: boost::path::root_directory() throws locale::facet::_S_create_c_locale name not valid
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-29 12:51:01


#8930: boost::path::root_directory() throws locale::facet::_S_create_c_locale name
not valid
------------------------------------------+------------------------
  Reporter: Yaohan Chen <yaohan.chen@…> | Owner: bemandawes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: filesystem
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------+------------------------

Comment (by Arseniy Ankudinov <afalin@…>):

 Seems to be related to this on FreeBSD with LC_ALL!=C, boost-1_55_0
 [[BR]]

 test.cpp:

 {{{
 #include <boost/filesystem.hpp>
 int main() {
   const char *c = "/tmp/file";
   boost::filesystem::path path(c,c+4);
   return 0;
 }
 }}}
 Backtrace:
 {{{
 #0 0x0000000801073a0c in kill () from /lib/libc.so.7
 #1 0x000000080107263b in abort () from /lib/libc.so.7
 #2 0x00000008012d0ea4 in __gnu_cxx::__verbose_terminate_handler () from
 /usr/lib/libsupc++.so.1
 #3 0x00000008012d53a3 in std::set_unexpected () from
 /usr/lib/libsupc++.so.1
 #4 0x00000008012d53e3 in std::terminate () from /usr/lib/libsupc++.so.1
 #5 0x00000008012d534a in __cxa_throw () from /usr/lib/libsupc++.so.1
 #6 0x00000008008fb8e2 in std::__throw_runtime_error () from
 /usr/lib/libstdc++.so.6
 #7 0x00000008008fa96d in std::locale::facet::_S_create_c_locale () from
 /usr/lib/libstdc++.so.6
 #8 0x0000000800882fdc in std::locale::_Impl::_Impl () from
 /usr/lib/libstdc++.so.6
 #9 0x0000000800884ce9 in std::locale::locale () from
 /usr/lib/libstdc++.so.6
 #10 0x00000000004061cc in boost::filesystem::path::codecvt () at
 libs/filesystem/src/path.cpp:911
 #11 0x0000000000402d3a in boost::filesystem::path::path<char const*>
 (this=0x7fffffffdb58, begin=0x408d20 "/tmp/file", end=0x408d24 "/file")
     at path.hpp:167
 #12 0x0000000000402bf5 in boost::filesystem::path::path<char const*>
 (this=0x7fffffffdb58, begin=0x408d20 "/tmp/file", end=0x408d24 "/file")
     at path.hpp:169
 #13 0x0000000000402965 in main () at test.cpp:4
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8930#comment:3>
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:16 UTC