Log

Author Commit Date CI Message
Nick Wellnhofer cc0cc2d3 2024-06-26T04:32:49 parser: Add more parser context accessors
Nick Wellnhofer 8b1f79ce 2024-06-26T04:30:38 SAX2: Make xmlSAXDefaultVersion a no-op
Nick Wellnhofer 71eb7109 2024-06-26T04:29:11 xmllint: Switch to xmlCtxtSetErrorHandler
Nick Wellnhofer c5750fc6 2024-06-26T04:28:36 python: Switch to xmlCtxtSetErrorHandler
Nick Wellnhofer 5cf5b542 2024-06-26T04:30:10 SAX2: Deprecate xmlSAX2StartElement
Nick Wellnhofer eca972e6 2024-06-26T02:22:04 parser: Add getters for XML declaration to parser context Access to struct members will be deprecated.
Nick Wellnhofer 3ff8a2c4 2024-06-26T01:08:48 parser: Deprecate xmlIsLetter
Nick Wellnhofer 598ee0d2 2024-06-26T01:18:55 error: Remove underscores from xmlRaiseError
Nick Wellnhofer fa50be92 2024-06-25T23:19:56 parser: Move implementation of xmlCtxtGetLastError
Nick Wellnhofer 7c11da2d 2024-06-27T12:47:47 tests: Clarify licence of test/intsubset2.xml
Nick Wellnhofer b1a416bf 2024-06-27T12:00:45 encoding: Restore old lookup order in xmlOpenCharEncodingHandler When looking up encodings with xmlLookupCharEncodingHandler, the returned handler can have a different name than requested (capitalization, internal aliases). This should eventually be fixed. For now we revert part of commit 5b893fa9, start the lookup with xmlFindHandler and add an explicit check for UTF-8. Should fix the encoding name issue mentioned in #749.
Nick Wellnhofer e6f25fdc 2024-06-26T14:15:26 uri: Fix documentation of xmlBuildRelativeURI
Nick Wellnhofer c195f06f 2024-06-25T22:14:47 autotools: Use AX_GCC_FUNC_ATTRIBUTE from autoconf archives
Nick Wellnhofer 1afaa371 2024-06-25T22:06:36 build: Move definition of ATTRIBUTE_DESTRUCTOR to libxml.h
Nick Wellnhofer fd099dd8 2024-06-24T20:37:39 autotools: Fix pkg.m4 check
Nick Wellnhofer c4d8343b 2024-06-24T19:41:32 encoding: Make xmlFindCharEncodingHandler return UTF-8 handler xmlFindCharEncodingHandler must always return a handler. Remove UTF-8 handler from default handler list. Fixes 5b893fa9.
Nick Wellnhofer 54c6c7e4 2024-06-23T21:51:52 uri: Only set file scheme for special Windows paths Fixes 2ce70cde. Also fix a test case.
Sam James ec47add4 2024-06-24T01:06:08 configure.ac: fix bashisms '==' is a bashism, so use the POSIX '=' instead.
correctmost c14c20f5 2024-06-23T18:50:59 doc: Add note about meson.build version bump
Nick Wellnhofer 2ce70cde 2024-06-23T16:24:46 uri: Handle filesystem paths in xmlBuildRelativeURISafe This mainly fixes issues on Windows but should also fix a few general corner cases. Should fix #745.
Nick Wellnhofer 7655ed2c 2024-06-23T00:32:12 cmake: Implement dependent options This should make sure that configurations are valid but doesn't warn about invalid configurations. CMake only supports boolean options and I have no idea how features like "minimal" or "legacy" that change default values of other options could be supported. Fixes #551.
Daniel E 600c6ca4 2024-06-23T12:16:47 cmake: Don't install meson build scripts in documentation Add meson.build files as exclusions
Nick Wellnhofer 28b9bb03 2024-06-22T21:51:52 uri: Enable Windows paths on Cygwin
Nick Wellnhofer 5b893fa9 2024-06-22T19:15:17 encoding: Fix encoding lookup with xmlOpenCharEncodingHandler Make xmlOpenCharEncodingHandler call xmlParseCharEncoding first so we prefer our own handlers for names like "UTF8". Only UTF-16 needs an exception. Make callers check the return value. For UTF-8, a NULL encoding doesn't mean an error. Remove unnecessary UTF-8 check from htmlFindOutputEncoder. Don't try to look up ASCII handler since the HTML handler is always available. Fix return code of xmlParseCharEncoding. Should fix #744.
Nick Wellnhofer b8903b9e 2024-06-22T17:55:46 runtest: Remove result handling from schemasOneTest We only care about errors.
Nick Wellnhofer a4703785 2024-06-22T17:49:14 runtest: Remove result handling from rngOneTest We only care about errors.
Nick Wellnhofer e68ccfa9 2024-06-22T16:42:36 tests: Port Schematron tests to C
Nick Wellnhofer 811373e2 2024-06-22T04:18:14 tests: Remove old Python tests With the exception of the xinclude test, these tests should be equivalent to runsuite and runxmlconf.
Nick Wellnhofer 0a279e2f 2024-06-22T04:00:33 tests: Remove old timing tests
Nick Wellnhofer f06fc933 2024-06-22T03:28:27 tests: Move tests for executables to separate script Move tests for xmllint shell and xmlcatalog to separate scripts and enabled them in Autotools.
Nick Wellnhofer 2d96adb2 2024-06-22T21:28:40 windows: fopen files with "wb"
Nick Wellnhofer 5589c9ea 2024-06-22T21:01:38 xmllint: Set stdin/stdout to binary on Windows
Nick Wellnhofer 4b6e6828 2024-06-22T02:34:36 cmake: Stop using win32config.h Move this file to the win32 subdirectory.
Nick Wellnhofer 84a4f84c 2024-06-22T02:11:24 build: Don't check for required headers and functions Unless we are on Windows, the following POSIX headers are required. They're part of the earliest POSIX specs and it doesn't make sense to check for them. - fcntl.h - unistd.h - sys/stat.h - sys/time.h On Windows, io.h, fcntl.h and sys/stat.h are always available.
Nick Wellnhofer f23fc4fa 2024-06-22T02:10:54 xmllint: Simplify time handling Assume that gettimeofday is always available.
Nick Wellnhofer dc6f55cf 2024-06-22T00:35:14 build: Remove check for IPv6 Only check for availability of netdb.h.
Nick Wellnhofer 02326d72 2024-06-21T23:54:35 build: Remove socklen_t checks socklen_t has been mandated by POSIX for ages. Always use "socklen_t" or "int" on Win32.
Nick Wellnhofer b01b55d5 2024-06-21T23:38:42 README: Fix Meson examples
Rosen Penev 88cc61e3 2024-06-20T22:09:55 meson: simplify thread_local check Use a simple loop. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 34fe4b88 2024-06-20T21:44:39 meson: simplify IPv6 check We only need to find AF_INET6. Also make it a feature. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 609c51c5 2024-06-20T21:33:15 meson: simplify socklen_t check Use a simple loop. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Nick Wellnhofer 9d46da17 2024-06-21T23:10:21 ci: Test meson build with legacy enabled
Nick Wellnhofer c2ccbc0f 2024-06-21T22:45:15 meson: Implement option dependencies This also removes the FreeBSD hack.
Nick Wellnhofer f9c33a55 2024-06-21T18:25:11 parser: Undeprecate some xmlParserInput members
Nick Wellnhofer 1228b4e0 2024-06-21T18:22:04 parser: Deprecate xmlParserCtxt->lastError We alredy have xmlCtxtGetLastError().
Nick Wellnhofer f82ca02b 2024-06-21T18:17:11 parser: Undeprecate some xmlParserCtxt members These are essential for SAX parsers.
Nick Wellnhofer 7ba6c8fe 2024-06-21T04:59:11 autotools: Remove libxml-2.0-uninstalled.pc
Nick Wellnhofer c106455c 2024-06-21T04:18:04 build: Set Cflags.private on Windows
Nick Wellnhofer 1a5ed747 2024-06-21T03:38:11 build: Fix XML_LIBDIR usage
Nick Wellnhofer fc4bd04b 2024-06-21T03:32:30 autotools: Remove unused variable
Nick Wellnhofer 4c1b8851 2024-06-21T03:26:54 autotools: Move MODULE_PLATFORM_LIBS into NON_PC_LIBS
Nick Wellnhofer 29bf09ec 2024-06-21T03:16:44 autotools: Remove XML_LIBTOOLLIBS
Nick Wellnhofer 02f519e6 2024-06-21T02:07:17 autotools: Use pkg-config to check for libreadline This handles static linking properly and avoids overlinking. Change the --with-readline default to no as it was before and raise an error if libreadline couldn't be found. Do the same for libhistory.
Rosen Penev 2def7b4b 2024-06-18T13:55:34 clang-tidy: move assignments out of if Found with bugprone-assignment-in-if-condition Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 5803ad26 2024-06-18T17:05:09 meson: change history to a feature Simpler. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev e9948ee5 2024-06-18T16:47:15 meson: change readline to a feature Simpler and easier to force enable. Also removed wrong curses check. This is meant for static readline and not needed with meson. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 5d542fef 2024-06-16T20:02:45 libxml: define ATTRIBUTE_UNUSED for clang Silences warnings under Clang on Windows. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Mike Dalessio bbbbbb46 2024-06-20T03:19:48 parser: implement xmlCtxtGetOptions In 712a31ab, the `options` struct member was deprecated. To allow callers to check the status of options bits, introduce xmlCtxtGetOptions.
Heiko Becker a4517bfe 2024-06-19T23:13:47 meson: Add libxml2 part of include dir to pc file The autotools build results in a pkgconfig file, which looks like this: " ... includedir=${prefix}/include ... Cflags: -I${includedir}/libxml2 " The latter part is missing when built with meson.
Rosen Penev 217e9b7a 2024-06-08T12:27:45 clang-tidy: don't return in void functions Found with readability-redundant-control-flow Signed-off-by: Rosen Penev <rosenp@gmail.com>
Nick Wellnhofer 4c3d22b0 2024-06-20T21:06:38 uri: Fix xmlBuildURI with NULL base Don't try to parse URI if base is NULL. Fixes functions like xmlParseDTD with certain filenames. Should fix #742.
Nick Wellnhofer 1dd5e76a 2024-06-17T21:06:46 xinclude: Don't remove root element Don't replace include element at root with empty nodeset.
Nick Wellnhofer 860fb460 2024-06-17T20:58:27 SAX2: Fix null deref after malloc failure Short-lived regression.
Rosen Penev 1d8bd126 2024-06-17T14:28:51 meson: fix icu and iconv om BSDs again libdir is needed when searching for iconv, not includedir. Remove OpenBSD from the bsd list. Something is wrong there and iconv.h is installed somewhere else. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev f61d23b8 2024-06-16T19:56:07 meson: only apply threads_dep to runtest Not needed elsewhere. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Nick Wellnhofer 32cac377 2024-06-17T17:59:49 parser: Selectively reenable reading from "-" Make filename "-" mean stdin for legacy SAX1 functions and xmlReadFile. This should hopefully fix most command line utilities. See #737.
Nick Wellnhofer 52ce0d70 2024-06-17T17:35:12 tests: Add XInclude test for issue #733
Nick Wellnhofer c5e9a5b2 2024-06-17T15:29:56 parser: Use catalogs with resource loader
Nick Wellnhofer 57004006 2024-06-17T14:37:54 reader: Fix xmlTextReaderReadString Regressed in commit 7cbf609a. Should fix #738.
Nick Wellnhofer 3c7c831c 2024-06-17T14:15:49 xinclude: Set XPath context doc Regressed in commit 78eab7a1.
Nick Wellnhofer 6deebe03 2024-06-17T13:09:37 parser: Make xmlInputCreateUrl handle HTTP input
Nick Wellnhofer d2fd9d37 2024-06-17T12:55:44 parser: Fix swapped arguments
Nick Wellnhofer 1ff48433 2024-06-17T12:54:46 xinclude: Load included documents with XML_PARSE_DTDLOAD We must detect ID attributes declared in external DTDs. Regressed in 12f0bb94.
Nick Wellnhofer 3aca5bcf 2024-06-17T03:34:06 doc: Ignore empty headers
Nick Wellnhofer 5a9a0e6f 2024-06-17T03:16:49 testapi: Don't test xmlunicode functions
Nick Wellnhofer 1112699c 2024-06-17T02:42:18 legacy: Remove most legacy functions from public headers Also remove warning messages.
Rosen Penev b4b4162f 2024-06-15T19:41:08 meson: fix compilation on BSDs with icu+iconv on BSDs, icu is installed and included from /usr/local. When found, libiconv headers override the normal ones and thus result in a missing link. Work around this oddity and add the link. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 915951b8 2024-06-16T18:19:42 meson: add DEFS to CFLAGS Adding a configuration flag as an include directory is wrong and errors on BSDs. ERROR: Include dir -DU_DISABLE_RENAMING=1 does not exist. Matches the autotools build now. Requires has_argument to fix non BSDs because of an annoying meson quirk. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Nick Wellnhofer faae3a91 2024-06-16T23:21:55 SAX2: Split out legacy SAX1 handling Split xmlSAX2StartElement into two functions handling legacy SAX1 and HTML.
Nick Wellnhofer 2b0c4abb 2024-06-16T21:52:12 threads: Remove pthread weak symbol hack On Linux, we tried to detect the presence of libpthread to disable things like locks. This questionable hack doesn't work since glibc 2.34 which merged libpthread into libc.
Nick Wellnhofer 38488027 2024-06-16T21:16:43 xmllint: Support libreadline without history
Nick Wellnhofer 5fca9498 2024-06-16T19:56:08 doc: Hide internal macro
Nick Wellnhofer fb2b9cda 2024-06-16T19:51:44 doc: Remove broken struct field description
Nick Wellnhofer 33a1f897 2024-06-16T19:16:47 legacy: Merge SAX.c into legacy.c
Nick Wellnhofer 1341deac 2024-06-16T17:57:12 xmllint: Move shell to xmllint Move source code for xmllint shell to shell.c and move it from the libxml2 library to the xmllint executable. Also allow shell to run without XPath and debug modules. Add stubs for old shell API functions in legacy build mode.
Nick Wellnhofer c9b06591 2024-06-16T17:36:05 xmllint: Fix resetting error in xmlHTMLPrintError Make sure that we don't change the error handler when fuzzing.
Nick Wellnhofer 481fd6bb 2024-06-16T16:30:54 tests: Remove testThreads.c This was merged into runtest.c some time ago.
Nick Wellnhofer 1b640358 2024-06-16T00:39:39 schemas: Stop using xmlValidateNotationUse Simplify symbol availability logic.
Nick Wellnhofer fa01278d 2024-06-16T00:11:41 regexp: Hide experimental legacy code This was never made public.
Nick Wellnhofer 10d60d15 2024-06-16T00:04:46 regexp: Stop using LIBXML_AUTOMATA_ENABLED This macro always equals LIBXML_REGEXP_ENABLED.
Nick Wellnhofer 11c3f84b 2024-06-15T23:57:39 SAX2: Always make xmlSAX2{Start,End}Element public Simplify symbol availability logic.
Nick Wellnhofer f307237e 2024-06-15T23:53:04 schemas: Use private copy of global NaN and Inf Simplify symbol availability logic.
Nick Wellnhofer b0fc67aa 2024-06-15T22:53:55 build: Remove --with-tree configuration option This option would allow for a smaller, but mostly useless minimal build. But it complicates the symbol availability logic in an insane way and requires specialized tools like our custom C parser in doc/apibuild.py. See #717.
Nick Wellnhofer 7cf7a54a 2024-06-15T22:27:40 build: Only enable linker version script in legacy mode The version script is deprecated but required for backward compatibility.
Nick Wellnhofer 7b65c90f 2024-06-16T18:29:21 Regenerate libxml2-api.xml and testapi.c
Nick Wellnhofer 49672779 2024-06-16T18:45:47 parser: Make XML_INPUT constants signed Avoid conversion to unsigned which triggers (harmless) UBSan warnings.
Rosen Penev 52d9d768 2024-06-15T16:20:04 runtest: move catalog.h out of threads define. It's needed when threads are disabled. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Nick Wellnhofer 08a6a084 2024-06-15T22:00:00 Fix previous commit
Nick Wellnhofer 84666581 2024-06-15T20:34:07 catalog: Fix initialization Initialize mutex via xmlInitParser. Fix some other initialization calls.
Nick Wellnhofer 898e5a14 2024-06-15T20:17:18 build: Remove compiler TLS warning