Re: [Boost-bugs] [Boost C++ Libraries] #9968: [filesystem] Streams don't handle unicode file name on Windows

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9968: [filesystem] Streams don't handle unicode file name on Windows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-08 16:55:01


#9968: [filesystem] Streams don't handle unicode file name on Windows
-------------------------------+------------------------
  Reporter: mike@… | Owner: bemandawes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: filesystem
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords: mingw
-------------------------------+------------------------

Comment (by anonymous):

 Same problem here, I tried also utf8 and it doesn't work as well:

 {{{
 #include <boost/filesystem/detail/utf8_codecvt_facet.hpp>
 (...)
 std::locale global_loc = std::locale();
 std::locale loc(global_loc, new
 boost::filesystem::detail::utf8_codecvt_facet);
 boost::filesystem::path::imbue(loc);
 (...)
 boost::filesystem::ofstream hello("שלום.txt");
 }}}

 it creates ラゥラ慵勉・txt since I'm on SJIS encoding.

 Windows machine, i686-w64-mingw32-g++ (GCC) 4.8.3 on Cygwin

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9968#comment:1>
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:18 UTC