Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3928 closed Bugs (fixed)

Boost filesystem does not use correct unicode facet for wpath on osx

Reported by: Sachin Garg <schngrg@…> 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

Change History (3)

comment:1 by Sachin Garg <schngrg@…>, 13 years ago

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.

comment:2 by Beman Dawes, 13 years ago

Resolution: fixed
Status: newclosed

(In [59695]) Fix #3928

comment:3 by Beman Dawes, 13 years ago

(In [59696]) Fix #3928

Note: See TracTickets for help on using tickets.