[libxml++] Seems like a bug in DomParser::parse_memory



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]