[Boost-bugs] [Boost C++ Libraries] #3928: Boost filesystem does not use correct unicode facet for wpath on osx

Subject: [Boost-bugs] [Boost C++ Libraries] #3928: Boost filesystem does not use correct unicode facet for wpath on osx
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-14 08:06:45


#3928: Boost filesystem does not use correct unicode facet for wpath on osx
---------------------------------------------+------------------------------
 Reporter: Sachin Garg <schngrg@…> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: filesystem
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
---------------------------------------------+------------------------------
 When using boost::filesystem on osx, it doesn't perform any unicode
 conversion for wpath. It seems to be because it does not use the correct
 facet.

 Adding following lines fixes the problem,

  std::locale global_loc = std::locale();
  boost::filesystem::detail::utf8_codecvt_facet utf8_facet(1);
  std::locale loc(global_loc, &utf8_facet);
  boost::filesystem::wpath_traits::imbue(loc);

 For more information,
 http://archives.free.net.ph/message/20071110.132150.af9dc620.en.html
 http://comments.gmane.org/gmane.comp.lib.boost.user/55790

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