Boost C++ Libraries: Ticket #3928: Boost filesystem does not use correct unicode facet for wpath on osx https://svn.boost.org/trac10/ticket/3928 <p> 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. </p> <p> Adding following lines fixes the problem, </p> <blockquote> <p> std::locale global_loc = std::locale(); boost::filesystem::detail::utf8_codecvt_facet utf8_facet(1); std::locale loc(global_loc, &amp;utf8_facet); boost::filesystem::wpath_traits::imbue(loc); </p> </blockquote> <p> For more information, <a class="ext-link" href="http://archives.free.net.ph/message/20071110.132150.af9dc620.en.html"><span class="icon">​</span>http://archives.free.net.ph/message/20071110.132150.af9dc620.en.html</a> <a class="ext-link" href="http://comments.gmane.org/gmane.comp.lib.boost.user/55790"><span class="icon">​</span>http://comments.gmane.org/gmane.comp.lib.boost.user/55790</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3928 Trac 1.4.3 Sachin Garg <schngrg@…> Sun, 14 Feb 2010 08:23:41 GMT <link>https://svn.boost.org/trac10/ticket/3928#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3928#comment:1</guid> <description> <p> 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. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Mon, 15 Feb 2010 21:23:06 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3928#comment:2 https://svn.boost.org/trac10/ticket/3928#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/59695" title="Fix #3928">[59695]</a>) Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3928" title="#3928: Bugs: Boost filesystem does not use correct unicode facet for wpath on osx (closed: fixed)">#3928</a> </p> Ticket Beman Dawes Mon, 15 Feb 2010 21:25:04 GMT <link>https://svn.boost.org/trac10/ticket/3928#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3928#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/59696" title="Fix #3928">[59696]</a>) Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3928" title="#3928: Bugs: Boost filesystem does not use correct unicode facet for wpath on osx (closed: fixed)">#3928</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>