Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1836: bug in serializing wide character strings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-29 20:32:54
#1836: bug in serializing wide character strings
-----------------------------------------------+----------------------------
Reporter: Jeff Faust <jeff@â¦> | Owner: ramey
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: serialization
Version: Boost 1.34.1 | Severity: Problem
Resolution: | Keywords: wstring wchar_t
-----------------------------------------------+----------------------------
Comment (by ramey):
speaking from memory when I last looked at this, I concluded that what was
needed was an escape mechanism. This would render some characters as \134
or something like that. This would be implemented in the "stack" of
iterator adaptors which are used to save/load the string. This would
entail character by character processing which I was thinking would be a
performance hit - which it would be. BUT, now I realize that
serialization of a wstring to a char archive is not a common operation, so
performance really isn't an issue. The way to address this is to look at
the documentation for "dataflow" iterators and the related code. It
wouldn't be too hard to craft another "escape" layer and insert into the
iterator stack which handles this. Feel free to take this on.
Robert Ramey
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/1836#comment:10> 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:04 UTC