[libxml++] Seems like a bug in DomParser::parse_memory
- From: Tim Alexeevsky <realtim mail ru>
- To: libxmlplusplus-general lists sourceforge net
- Subject: [libxml++] Seems like a bug in DomParser::parse_memory
- Date: Thu, 9 Dec 2004 01:55:00 +0300
Hello!
There seems to be a UTF-8 related bug in DomParser.
domparser.cc:71 is
context_ = xmlCreateMemoryParserCtxt(contents.c_str(), contents.size());
(as of 2.6.last and 2.8.last at least)
shouldn't it be
context_ = xmlCreateMemoryParserCtxt(contents.c_str(), contents.bytes());
Otherwise my UTF-8 xml string containing some russian characters is
told to have miscellaneous errors some bytes from end.
Thanks for you library anyway :)
Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]