diff --git a/ChangeLog b/ChangeLog index 756b8c57..2fe8f687 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,17 @@ +Fri Aug 29 21:53:12 CEST 2008 Daniel Veillard + + * doc/examples/reader3.c: patch from Robert Schwebel , allows to + compile the example if configured without output support fixes + #545582 + * Makefile.am: add testrecurse to the make check tests + * HTMLparser.c: if the parser got a encoding argument it should be + used over what the meta specifies, patch fixing #536346 + Fri Aug 29 14:41:38 CEST 2008 Daniel Veillard * parser.c: a couple more fixes - * nanohttp.c nanoftp.c: patch from Andreas Färber to compile on Haiku + * nanohttp.c nanoftp.c: patch from Andreas Färber to compile on Haiku + fixes #527880 * doc/examples/*: regenerated Thu Aug 28 17:31:46 CEST 2008 Daniel Veillard diff --git a/HTMLparser.c b/HTMLparser.c index a16faf63..57e64df0 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -5973,8 +5973,12 @@ htmlDoRead(htmlParserCtxtPtr ctxt, const char *URL, const char *encoding, xmlCharEncodingHandlerPtr hdlr; hdlr = xmlFindCharEncodingHandler(encoding); - if (hdlr != NULL) + if (hdlr != NULL) { xmlSwitchToEncoding(ctxt, hdlr); + if (ctxt->input->encoding != NULL) + xmlFree((xmlChar *) ctxt->input->encoding); + ctxt->input->encoding = xmlStrdup((xmlChar *)encoding); + } } if ((URL != NULL) && (ctxt->input != NULL) && (ctxt->input->filename == NULL)) diff --git a/Makefile.am b/Makefile.am index cc21bf9a..de57c465 100644 --- a/Makefile.am +++ b/Makefile.am @@ -177,7 +177,7 @@ runxmlconf_LDADD= $(LDADDS) #testOOM_LDADD= $(LDADDS) runtests: - $(CHECKER) ./runtest$(EXEEXT) && $(CHECKER) ./testapi$(EXEEXT) && $(CHECKER) ./testchar$(EXEEXT)&& $(CHECKER) ./testdict$(EXEEXT) && $(CHECKER) ./runxmlconf$(EXEEXT) + $(CHECKER) ./runtest$(EXEEXT) && $(CHECKER) ./testrecurse$(EXEEXT) &&$(CHECKER) ./testapi$(EXEEXT) && $(CHECKER) ./testchar$(EXEEXT)&& $(CHECKER) ./testdict$(EXEEXT) && $(CHECKER) ./runxmlconf$(EXEEXT) check: all runtests diff --git a/doc/examples/reader3.c b/doc/examples/reader3.c index acbff4f4..51f9d3b2 100644 --- a/doc/examples/reader3.c +++ b/doc/examples/reader3.c @@ -15,7 +15,8 @@ #include #include -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_PATTERN_ENABLED) +#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_PATTERN_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) + /** * streamFile: @@ -113,7 +114,7 @@ int main(int argc, char **argv) { #else int main(void) { - fprintf(stderr, "Reader or Pattern support not compiled in\n"); + fprintf(stderr, "Reader, Pattern or output support not compiled in\n"); exit(1); } #endif