Opened 18 years ago
Closed 17 years ago
#309 closed Bugs (Rejected)
boost::serialization - strings with '&' character included
| Reported by: | nobody | Owned by: | Robert Ramey |
|---|---|---|---|
| Milestone: | Component: | serialization | |
| Version: | None | Severity: | |
| Keywords: | Cc: |
Description
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.
Change History (2)
comment:2 by , 17 years ago
| Status: | assigned → closed |
|---|
Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
Note:
See TracTickets
for help on using tickets.
