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: 2017-09-25 02:28:15
#9968: [filesystem] Streams don't handle unicode file name on Windows
-------------------------------+-------------------------
Reporter: mike@⦠| Owner: Beman Dawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords: mingw
-------------------------------+-------------------------
Comment (by boost.flamefire@â¦):
Came across the same problem. I was wondering: If boost has to fall back
to narrow character set on mingw then why doesn't it convert the filename
correctly?
In my case I have to write to the user directory but the username contains
an umlaut. Internally I use all UTF8 in the string (std::string) and also
have the path as an UTF8 string. When I pass it to e.g. memory mapped
files or the directory functions it works. In MSVC it also works (widechar
open function for fstream) but on MinGW it falls back to narrow char open
and (maybe?) passes the utf8 string raw into the open function instead of
converting it to the system encoding.
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/9968#comment:4> 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-09-25 02:34:16 UTC