aboutsummaryrefslogtreecommitdiffstats
path: root/encoding.c
Commit message (Collapse)AuthorAgeFilesLines
...
* cleanup fix a funny typo converted the Schemas code to the new errorDaniel Veillard2003-10-101-1/+1
| | | | | | | | | * Makefile.am: cleanup * encoding.c: fix a funny typo * error.c xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h: converted the Schemas code to the new error handling. PITA, still need to check output from regression tests. Daniel
* Okay this is scary but it is just adding a configure option to disableDaniel Veillard2003-09-291-0/+18
| | | | | | | | | | | | | | | | | | * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h include/libxml/catalog.h include/libxml/debugXML.h include/libxml/entities.h include/libxml/nanohttp.h include/libxml/relaxng.h include/libxml/tree.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlschemas.h include/libxml/xmlversion.h.in include/libxml/xpathInternals.h python/libxml.c: Okay this is scary but it is just adding a configure option to disable output, this touches most of the files. Daniel
* further (final?) minor changes for compilation warnings. No change toWilliam M. Brack2003-09-271-2/+0
| | | | | * encoding.c, parser.c, relaxng.c: further (final?) minor changes for compilation warnings. No change to logic.
* Minor changes to comments, etc. for improving documentation generationWilliam M. Brack2003-08-151-3/+6
| | | | | | | | * encoding.c, threads.c, include/libxml/HTMLparser.h, doc/libxml2-api.xml: Minor changes to comments, etc. for improving documentation generation * doc/Makefile.am: further adjustment to auto-generation of win32/libxml2.def.src
* applied UTF-16 encoding handling patch provided by Mark Itzcovitz moreDaniel Veillard2003-08-141-6/+16
| | | | | | | | * encoding.c: applied UTF-16 encoding handling patch provided by Mark Itzcovitz * encoding.c parser.c: more cleanup and fixes for UTF-16 when not having iconv support. Daniel
* further small changes for warnings when configured with --with-iconv=noWilliam M. Brack2003-08-071-3/+7
| | | | | * encoding.c: further small changes for warnings when configured with --with-iconv=no
* applying patch from Peter Jacobi to added ISO-8859-x encoding support whenDaniel Veillard2003-07-301-0/+1068
| | | | | | | | | * encoding.c: applying patch from Peter Jacobi to added ISO-8859-x encoding support when iconv is not available * configure.in include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h.in: added the glue needed at the configure level and made it the default for Windows Daniel
* fix the previous commit DanielDaniel Veillard2003-07-291-1/+1
| | | | | * encoding.c: fix the previous commit Daniel
* fixed problem with comments reported by Nick Kew added routinesWilliam M. Brack2003-07-291-0/+47
| | | | | | * HTMLparser.c: fixed problem with comments reported by Nick Kew * encoding.c: added routines xmlUTF8Size and xmlUTF8Charcmp for some future cleanup of UTF8 handling
* small fix fixed an error message DanielDaniel Veillard2003-06-021-1/+1
| | | | | | * encoding.c: small fix * xmlIO.c: fixed an error message Daniel
* added xmlMallocAtomic() to be used when allocating blocks which do notDaniel Veillard2003-04-191-1/+1
| | | | | | | | | | | | * DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c include/libxml/globals.h include/libxml/xmlmemory.h: added xmlMallocAtomic() to be used when allocating blocks which do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet() to allow registering the full set of functions needed by a garbage collecting allocator like libgc, ref #109944 Daniel
* applied Gennady's patch against buffer overrunIgor Zlatkovic2003-03-081-2/+7
|
* fixing bug #104646 about iconv based encoding conversion when the inputDaniel Veillard2003-02-101-0/+2
| | | | | | | * encoding.c xmlIO.c: fixing bug #104646 about iconv based encoding conversion when the input buffer stops in the middle of a multibyte char Daniel
* fixing bug #103100 with a dummy UTF8ToUTF8 copy DanielDaniel Veillard2003-01-141-1/+38
| | | | | * encoding.c: fixing bug #103100 with a dummy UTF8ToUTF8 copy Daniel
* 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