Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2004-10-10 06:06:12


Bugs item #1043942, was opened at 2004-10-10 04:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1043942&group_id=7586

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: boost::serialization - strings with '&' character included

Initial Comment:
The issue is related to xml serialization only. I am trying
to serialize strings with & character included. When I am
trying to deserialize such a string, everything after '&'
just disappeared.

Also I noticed that serializer doesn't convert '&' to xml
entity '&'. I guess it should. However it converts
from amp entity when deserializing.

Even if I convert '&' to xml entity manually, the problem
still occur.

As I found debugging the source code, the problem
happens because of wrong spirit rule in
basic_xml_grammar.ipp file:

   CharData =
        (*(anychar_p - chset_p(L"&<"))) [
            append_string<
                StringType,
                BOOST_DEDUCED_TYPENAME
std::basic_string<CharType>::const_iterator
>(rv.contents)
        ]
    ;

when I deleted '&' I was able to deserialize strings
with '&' at least. I do not know how it can affect other
aspects of deserialization.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1043942&group_id=7586

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk