Opened 7 years ago
Closed 7 years ago
#11858 closed Bugs (fixed)
Boost.Seriliazation broken when using Unicode characters
Reported by: | 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
Note:
See TracTickets
for help on using tickets.
I believe that the recent upload to develop fixes this. A couple of compilers/complain though