#3928 closed Bugs (fixed)
Boost filesystem does not use correct unicode facet for wpath on osx
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | Boost 1.43.0 | Component: | filesystem |
Version: | Boost 1.41.0 | Severity: | Problem |
Keywords: | Cc: | schngrg@… |
Description
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
Note:
See TracTickets
for help on using tickets.
I just noticed that this bug is owned by Beman and the above solution was also taken from a 2007 forum post by Beman. So if is already aware of this issue, I am curios that why this fix still wasn't added to boost.