Opened 7 years ago

Last modified 7 years ago

#11567 new Bugs

Boost crashes when boost::filesystem::path::imbue(std::locale(""));

Reported by: anonymous Owned by: Beman Dawes
Milestone: Boost 1.58.0 Component: filesystem
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

This code crashes:

   boost::filesystem::path::imbue(std::locale(""));
   boost::filesystem::path p (L"привет");

in:

  void dispatch(const std::wstring& c, U& to, const codecvt_type& cvt)
  {
    if (c.size())
      convert(&*c.begin(), &*c.begin() + c.size(), to, cvt); // SIGABRT cvt is invalid
  }

Change History (3)

comment:1 by anonymous, 7 years ago

Problem on OSX and Linux

comment:2 by Artyom Beilis, 7 years ago

Component: localefilesystem
Owner: changed from Artyom Beilis to Beman Dawes

comment:3 by Artyom Beilis, 7 years ago

std::locale("") is not generated by Boost.Locale

Note: See TracTickets for help on using tickets.