Opened 7 years ago

Closed 7 years ago

#11858 closed Bugs (fixed)

Boost.Seriliazation broken when using Unicode characters

Reported by: gast128@… Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc:

Description

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.

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

Change History (1)

comment:1 by Robert Ramey, 7 years ago

Resolution: fixed
Status: newclosed

I believe that the recent upload to develop fixes this. A couple of compilers/complain though

Note: See TracTickets for help on using tickets.