Subject: [Boost-bugs] [Boost C++ Libraries] #11858: Boost.Seriliazation broken when using Unicode characters
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-21 11:34:03
#11858: Boost.Seriliazation broken when using Unicode characters
------------------------------+---------------------------
Reporter: gast128@⦠| Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.60.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------
It seems that somewhere after 1.57. Boost.Serialization is broken for
Unicode characters. The code difference is in archives, e.g. in 1.57 in
xml_woarchive_impl the utf8_codecvt_facet is set, but this has been
disabled in 1.60.
{{{#!cpp
void f()
{
std::wstring wstr = L"\u20AC";
std::wofstream ofs(L"c:\\temp\\bla.xml");
boost::archive::xml_woarchive oa(ofs);
oa << boost::serialization::make_nvp("tag", wstr);
}
}}}
see thread.gmane.org/gmane.comp.lib.boost.user/85178
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11858> 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:19 UTC