aboutsummaryrefslogtreecommitdiffstats
path: root/encoding.c
Commit message (Collapse)AuthorAgeFilesLines
* code cleanup, especially the function comments. fixed a small bug whenDaniel Veillard2002-12-101-1/+1
| | | | | | | | | | * DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c nanoftp.c nanohttp.c parser.c parserInternals.c testC14N.c testDocbook.c threads.c tree.c valid.c xmlIO.c xmllint.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c: code cleanup, especially the function comments. * tree.c: fixed a small bug when freeing nodes which are XInclude ones. Daniel
* fixed #99082 for xi:include encoding="..." support on text includes. addedDaniel Veillard2002-11-201-1/+1
| | | | | | | | | | | * xinclude.c parserInternals.c encoding.c: fixed #99082 for xi:include encoding="..." support on text includes. * result/XInclude/tstencoding.xml test/XInclude/docs/tstencoding.xml test/XInclude/ents/isolatin.txt : added a specific regression test * python/generator.py python/libxml2class.txt: fixed the generator the new set of comments generated for doc/libxml2-api.xml were breaking the python generation. Daniel
* made xmlGetUTF8Char public DanielDaniel Veillard2002-10-221-1/+1
| | | | | * include/libxml/encoding.h encoding.c: made xmlGetUTF8Char public Daniel
* Opening the interface xmlNewCharEncodingHandler as requested in #89415Daniel Veillard2002-08-011-1/+2
| | | | | | | | | | * encoding.c include/libxml/encoding.h: Opening the interface xmlNewCharEncodingHandler as requested in #89415 * python/generator.py python/setup.py.in: applied cleanup patches from Marc-Andre Lemburg * tree.c: fixing bug #89332 on a specific case of loosing the XML-1.0 namespace on xml:xxx attributes Daniel
* replaced sprintf() with snprintf() to prevent possible buffer overflowAleksey Sanin2002-06-141-1/+1
| | | | | | | | * DOCBparser.c HTMLparser.c debugXML.c encoding.c nanoftp.c nanohttp.c parser.c tree.c uri.c xmlIO.c xmllint.c xpath.c: replaced sprintf() with snprintf() to prevent possible buffer overflow (the bug was pointed out by Anju Premachandran)
* another peroformance patch from Peter Jacobi, that time on parsingDaniel Veillard2002-05-311-22/+21
| | | | | | * parser.c: another peroformance patch from Peter Jacobi, that time on parsing attribute values. Daniel
* fixed a bug in the ISO-Latin 1 to UTF8 encoder raised by Morus WalterDaniel Veillard2002-03-211-2/+6
| | | | | | * encoding.c: fixed a bug in the ISO-Latin 1 to UTF8 encoder raised by Morus Walter Daniel
* preparing 2.4.18 updated and rebuilt the web site implement the newDaniel Veillard2002-03-181-0/+1
| | | | | | | | | | | | | * configure.in: preparing 2.4.18 * doc/*: updated and rebuilt the web site * *.c libxml.h: implement the new IN_LIBXML scheme discussed with the Windows and Cygwin maintainers. * parser.c: humm, changed the way the SAX parser work when xmlSubstituteEntitiesDefault(1) is set, it will then do the entity registration and loading by itself in case the user provided SAX getEntity() returns NULL. * testSAX.c: added --noent to test the behaviour. Daniel
* Paul Keogh pointed out a possibility of segfault on repetedDaniel Veillard2002-01-081-0/+1
| | | | | | | * encoding.c: Paul Keogh pointed out a possibility of segfault on repeted xmlAddEncodingAlias() / xmlCleanupEncodingAlias(). Closes bug # 68238 Daniel
* applied 42 documentation patches from Charlie Bozeman. Regenerated theDaniel Veillard2001-12-311-19/+19
| | | | | | * *.c include/libxml/*.h doc/html/*: applied 42 documentation patches from Charlie Bozeman. Regenerated the HTML docs. Daniel
* fix bug #63752 of compiling libxml with a non standard set of optionsDaniel Veillard2001-11-041-1/+1
| | | | | | * encoding.c global.data globals.c testThreads.c: fix bug #63752 of compiling libxml with a non standard set of options Daniel
* make the allocation be per-thread a configure option fixed compilationDaniel Veillard2001-10-151-0/+1
| | | | | | | | * include/libxml/globals.h configure.in global.data: make the allocation be per-thread a configure option * encoding.c include/libxml/parser.h: fixed compilation errors Daniel
* preparing 2.4.6 release updated and rebuilt the docs fixed a number ofDaniel Veillard2001-10-101-1/+1
| | | | | | | * configure.in: preparing 2.4.6 release * doc/xml.html doc/html/*: updated and rebuilt the docs * include/libxml/*.h *.c: fixed a number of teh/the widht/width typos Daniel
* do not output hexadecimal charrefs when serializing HTML since someDaniel Veillard2001-09-141-1/+1
| | | | | | | | | * encoding.c entities.c: do not output hexadecimal charrefs when serializing HTML since some version of Netscape can't grok it, generate decimal ones. * result/HTML/doc3.htm: output changed due to previous test * parserInternals.c: repair xmlKeepBlanksDefault() broken in 2.4.4 Daniel
* Add cast to fix warning. Add include of <libxml/parser.h>.Darin Adler2001-07-271-1/+1
| | | | | * encoding.c: (xmlIconvWrapper): Add cast to fix warning. * testCatalog.c: Add include of <libxml/parser.h>.
* Cleanup, cleanup .. removed libxml softlink for good cleanup to get 100%Daniel Veillard2001-07-181-3/+2
| | | | | | | | Cleanup, cleanup .. * configure.in Makefile.am: removed libxml softlink for good * include/libxml/*.h *.c doc/Makefile.am: cleanup to get 100% coverage by gtk-doc Daniel
* cleanup of global variables, marking some const or private. DanielDaniel Veillard2001-07-161-2/+2
| | | | | | | | * include/libxml/parserInternals.h include/libxml/HTMLparser.h xmlIO.c tree.c parserInternals.c entities.c encoding.c HTMLparser.c: cleanup of global variables, marking some const or private. Daniel
* Summer's cleanup, a really big one:Daniel Veillard2001-06-241-1/+1
| | | | | | | | | | | | | | | | * AUTHORS: added William and Bjorn * include/libxml/*.h *.c README doc/*.html etc.: changed old email to daniel@veillard.com hopefully I won't have to do this again * doc/Makefile.am doc/html/*.html: cleanup makefile, checked that docs can be rebuilt cleanly now * include/libxml/xml*version.h*: removed include/libxml/xmlversion.h from CVs it's generated, added include/libxml/xmlwin32version.h also generated but which should change far less frequently. * catalog.c nanoftp.c: made sure to include libxml.h not libxml/xmlversion.h directly * include/libxml/*.h: include xmlwin32version.h instead of xmlversion.h when compiling on WIN32 and MSC Daniel
* attempt to work around what seemed a gcc optimizer bug when handlingDaniel Veillard2001-06-211-41/+55
| | | | | | | | * xpath.c: attempt to work around what seemed a gcc optimizer bug when handling floats on i386 http://veillard.com/gcc.bug * tree.c entities.c encoding.c: doing some cleanups while chasing it Daniel
* - parser.c parserInternals.c encoding.c: Since Notepad on Win2kDaniel Veillard2001-06-201-0/+9
| | | | | | | outputs a BOM in UTF8, an errata has been issued to avoid the problem, that was the most reasonable solution... Add support for a leading UTF8 BOM in entities. Daniel
* - encoding.c: Robert Collins provided a patch to add theDaniel Veillard2001-05-311-0/+1
| | | | | "US-ASCII" encoding alias Daniel
* - xpath.c encoding.[ch]: William M. Brack provided a set of UTF8Daniel Veillard2001-05-301-18/+216
| | | | | | string oriented functions and started cleaning the related areas in xpath.c which needed fixing in this respect Daniel
* - TODO: updated - nanohttp.[ch] : started adding APIs to get theDaniel Veillard2001-05-281-31/+31
| | | | | | | | | | - TODO: updated - nanohttp.[ch] : started adding APIs to get the redirected URL when this occurs (needed for further base computation - tree.h: cleanup - encoding.c: cleanup - SAX.c: minor change around ctxt->loadsubset Daniel
* - tree.c parser.c encoding.c: spent a bit more time lookingDaniel Veillard2001-04-301-11/+12
| | | | | | at the parsing speed and DOM handling. Added a few more speedups. Daniel
* trio upgrade and integrationBjorn Reese2001-04-211-7/+1
|
* - xpath.c: fixed xmlXPathNodeCollectAndTest() to do properDaniel Veillard2001-04-161-0/+41
| | | | | | | prefix lookup. - parserInternals.c: fixed the bug reported by Morus Walter due to an off by one typo in xmlStringCurrentChar() Daniel
* Huge cleanup, I switched to compile withDaniel Veillard2001-03-241-12/+10
| | | | | | | | | | | | | | | | | | | | -Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline - HTMLparser.[ch] HTMLtree.c SAX.c debugXML.c encoding.[ch] encoding.h entities.c error.c list.[ch] nanoftp.c nanohttp.c parser.[ch] parserInternals.[ch] testHTML.c testSAX.c testURI.c testXPath.c tree.[ch] uri.c valid.[ch] xinclude.c xmlIO.[ch] xmllint.c xmlmemory.c xpath.c xpathInternals.h xpointer.[ch] example/gjobread.c: Cleanup, staticfied a number of non-exported functions, detected and cleaned up a dozen of problem found this way, avoided a lot of public function name/typedef/system names clashes - doc/xml.html: updated - configure.in: switched private flags to the really pedantic ones. Daniel
* Revert directory structure changesOwen Taylor2001-02-231-0/+2078
|
* moved to libxml directory - this allow simplify automake/autoconf. NowCET 2001 Tomasz Kłoczko2001-02-231-2078/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Feb 23 02:03:56 CET 2001 Tomasz Kłoczko <kloczek@pld.org.pl> * *.c *.h libxml files: moved to libxml directory - this allow simplify automake/autoconf. Now isn't neccessary hack on am/ac level for make and remove libxml symlink (modified for this also configure.in and main Makefile.am). Now automake abilities are used in best way (like in many other projects with libraries). * include/win32config.h: moved to libxml directory (now include directory isn't neccessary). * Makefile.am, examples/Makefile.am, libxml/Makefile.am: added empty DEFS and in INCLUDES rest only -I$(top_builddir) - this allow minimize parameters count passed to libtool script (now compilation is also slyghtly more quiet). * configure.in: simplifies libzdetestion - prepare separated variables for keep libz name and path to libz header files isn't realy neccessary (if someone have libz installed in non standard prefix path to header files ald library can be passed as: $ CFALGS="-I</libz.h/path>" LDFLAGS="-L</libz/path>" ./configure * autogen.sh: check now for libxml/entities.h. After above building libxml pass correctly and also pass "make install DESTDIR=</install/prefix>" from tar ball generated by "make dist". Seems ac/am reorganization is finished. This changes not touches any other things on *.{c,h} files level.
* - encoding.c xmlIO.c: Fixing the problem reported by Marc SanfaconDaniel Veillard2001-01-041-3/+14
| | | | Daniel
* General fixes, XPointer improvements:Daniel Veillard2000-11-241-2/+2
| | | | | | | | | | - HTMLparser.c: some fixes on auto-open of html/head/body - encoding.c: fixed a compilation error on some gcc env - xpath.c xpointer.[ch] xpathInternals.h: improved the XPointer implementation - test/XPath/xptr/strpoint test/XPath/xptr/strrange3: added related XPointer tests and associated results Daniel
* patched to redirrect all "out of context" error messages toDaniel Veillard2000-10-251-38/+69
| | | | | | | | | | | | a reconfigurable routine. The changes are: * xmlerror.h : added the export of an error context type (void *) an error handler type xmlGenericErrorFunc there is an interface xmlSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler); to reset the error handling routine and its argument (by default it's equivalent to respectively fprintf and stderr. * all the c files: all wild accesses to stderr or stdout within the library have been replaced to calls to the handler. Daniel
* libxml now grok Docbook-3.1.5 and Docbook-4.1.1 DTDs, thisDaniel Veillard2000-08-261-2/+195
| | | | | | | | | | | | | | | | | popped out a couple of bugs and 3 speed issues, there is only on minor speed issue left. Assorted collection of user reported bugs and fixes: - doc/encoding.html: added encoding aliases doc - doc/xml.html: updates - encoding.[ch]: added EncodingAliases functions - entities.[ch] valid.[ch] debugXML.c: removed two serious bottleneck affecting large DTDs like Docbook - parser.[ch] xmllint.c: added a pedantic option, will be useful - SAX.c: redefinition of entities is reported in pedantic mode - testHTML.c: uninitialized warning from gcc - uri.c: fixed a couple of bugs - TODO: added issue raised by Michael Daniel
* Large sync between my W3C base and Gnome's one:Daniel Veillard2000-08-121-2/+19
| | | | | | | | | | | | | | | | | | - parser.[ch]: added xmlGetFeaturesList() xmlGetFeature() and xmlAddFeature() - tree.[ch]: added xmlAddChildList() - xmllint.c: MAP_FAILED macro test - parser.h: added xmlParseCtxtExternalEntity() - valid.c: applied bug fixes removed warning - tree.c: added CDATA block to elements content - testSAX.c: cleanup of output - testHTML.c: added SAX testing - encoding.c: better error recovery - SAX.c, parser.c: fixed one of the external entity processing of the OASis testsuite - Makefile.am: added HTML SAX regression tests - configure.in: bumped to 2.2.2 - test/HTML/ result/HTML: added a few of HTML tests, and added the SAX results Daniel
* - nanohttp.c: fixed socklen_t replacement to unsigned intDaniel Veillard2000-07-211-2/+0
| | | | | | | | | - parser.c: fixed a space handdling missing at the end of production 28 DOCTYPE. - xmlmemory.c: fixed a stupid bug on the routine to override allocation functions - TODO: updated Daniel
* - doc/encoding.html doc/xml.html: added I18N docDaniel Veillard2000-07-141-41/+259
| | | | | | | | | | | | | | | | | | | | - encoding.[ch] HTMLtree.[ch] parser.c HTMLparser.c: I18N encoding improvements, both parser and filters, added ASCII & HTML, fixed the ISO-Latin-1 one - xmllint.c testHTML.c: added/made visible --encode - debugXML.c : cleanup - most .c files: applied patches due to warning on Windows and when using Sun Pro cc compiler - xpath.c : cleanup memleaks - nanoftp.c : added a TESTING preprocessor flag for standalong compile so that people can report bugs more easilly - nanohttp.c : ditched socklen_t which was a portability mess and replaced it with unsigned int. - tree.[ch]: added xmlHasProp() - TODO: updated - test/ : added more test for entities, NS, encoding, HTML, wap - configure.in: preparing for 2.2.0 release Daniel
* Work on character encoding support for the HTML parserDaniel Veillard2000-07-021-1/+1
| | | | | | Fixed some autoopen/autoclose probs for the HTML parser Fixed a potential memleak in the encoding stuff Daniel.
* - win32config.h.in: updatedDaniel Veillard2000-06-301-7/+9
| | | | | | | | | | | | | | - xmlversion.h.in: crap forgot to update this, this mean 2.1.0 lacks iconv support :-( need to release 2.1.1 - configure.in: release 2.1.1 - HTMLparser: fixed bug #14784 - xpath.c HTMLparser.c encoding.c parser.c: fix warning raised by Windows compiler - HTMLparser.c SAX.c HTMLtree.h tree.h: create HTML document in the SAX startDocument() callback. - TODO: updated - rebuild doc Daniel
* - Large resync between W3C and Gnome treeDaniel Veillard2000-06-281-25/+375
| | | | | | | | | | | | | | | | | | | - configure.in: 2.1.0 prerelease - example/Makefile.am example/gjobread.c tree.h: work on libxml1 libxml2 convergence. - nanoftp, nanohttp.c: fixed stalled connections probs - HTMLtree.c SAX.c : support for attribute without values in HTML for andersca - valid.c: Fixed most validation + namespace problems - HTMLparser.c: start document callback for andersca - debugXML.c xpath.c: lots of XPath fixups from Picdar Technology - parser.h, SAX.c: serious speed improvement for large CDATA blocks - encoding.[ch] xmlIO.[ch]: Improved seriously saving to different encoding - config.h.in parser.c xmllint.c: added xmlCheckVersion() and the LIBXML_TEST_VERSION macro Daniel
* revamped the encoding support, added iconv support, so now libxml ifDaniel Veillard2000-05-031-177/+555
| | | | | | | | | | | | | | | | | | | | | | * encoding.[ch], xmlIO.[ch], parser.c, configure.in : revamped the encoding support, added iconv support, so now libxml if compiled with iconv automatically support japanese encodings among others. Work based on initial patch from Yuan-Chen Cheng I may have broken binary compat in the encoding handler registration scheme, but that was so utterly broken I don't expect anybody to have used this feature until now. * parserInternals.h: fixup on the CHAR range macro * xml-error.h, parser.c: catch URL/URI errors using the uri.c code. * tree.[ch]: added xmlBufferGrow(), was needed for iconv * uri.c: added xmlParseURI() I can't believe I forgot to implement this one in 2.0 !!! * SAX.c: moved doc->encoding update in the endDocument() call. * TODO: updated. Iconv rules :-) Daniel
* Work done on the plane, ready to release libxml2-2.0.0, DanielDaniel Veillard2000-04-031-2/+2
|
* This is the 2.0.0-beta, lots and lots and lots of changesDaniel Veillard2000-03-141-88/+439
| | | | | | Have a look at http://xmlsoft.org/upgrade.html Daniel
* - fix for PIs name starting with xmlDaniel Veillard1999-12-221-1/+3
| | | | | | - fixed a potential problem with || and && ops - generate win32config.h for those on the Other Side ! Daniel
* - fixed a nasty bug destroying default namespace and Dia :-(Daniel Veillard1999-12-161-0/+3
| | | | | | introduced in 1.8.0 - closed bug #3950 Daniel
* Added cleanup routines, cleanup with -pedantic on linux, closed #3788, DanielDaniel Veillard1999-11-241-0/+23
|
* Attribute nomarlization closing bug #3597Daniel Veillard1999-11-171-20/+20
| | | | | | Small fixes in encoding.c First bits of real progressive parsing, Daniel
* Ready for 1.7.0, major changes, nanohttp, cleanup, binary compat with 1.4,Daniel Veillard1999-09-221-2/+8
| | | | etc... See Changelog, Daniel.
* Added memory debug wrappers, killed all detected memory leaks, DanielDaniel Veillard1999-09-021-6/+4
|
* Release 1.6, lot of fixes, more validation, code cleanup, added namespaceDaniel Veillard1999-08-291-4/+10
| | | | on attributes, Daniel.
* Huge commit: 1.5.0, XML validation, Xpath, bugfixes, examples .... DanielDaniel Veillard1999-08-101-0/+10
|