[xml] Minor bug in htmlCtxtReset
- From: Michael Day <mikeday yeslogic com>
- To: xml gnome org
- Subject: [xml] Minor bug in htmlCtxtReset
- Date: Fri, 03 Nov 2006 14:32:28 +1100
Hi,
The htmlCtxtReset() function contains the following line:
ctxt->charset = XML_CHAR_ENCODING_UTF8;
However, htmlNewParserCtxt() and htmlInitParserCtxt() do not do this,
they leave charset set to zero.
This means that causing htmlCtxtReset() changes the behaviour of
htmlCtxtReadFile() compared to using a fresh parsing context.
Is this a bug? It certainly seems a bit awkward.
Michael
--
Print XML with Prince!
http://www.princexml.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]