|
202045f8
|
2024-07-02T18:51:59
|
|
save: Pass options to xmlSaveCtxtInit
|
|
197e09d5
|
2024-07-02T19:46:51
|
|
parser: Fix xmlLoadResource
Short-lived regression.
|
|
ede5d99a
|
2024-07-02T01:42:33
|
|
parser: Fix typo
|
|
866be54e
|
2024-07-02T04:27:53
|
|
parser: Don't use deprecated xmlSplitQName
|
|
30ef7755
|
2024-07-02T04:02:16
|
|
parser: Don't use deprecated xmlCopyChar
|
|
751ba00e
|
2024-07-02T03:41:05
|
|
parser: Don't use deprecated xmlSwitchInputEncoding
|
|
9a4770ef
|
2024-07-02T02:18:03
|
|
doc: Improve documentation
|
|
0b0dd989
|
2024-06-28T23:13:38
|
|
parser: Fix EBCDIC detection
|
|
bb8e81c7
|
2024-06-28T04:36:14
|
|
encoding: Rework simple conversions function
Use a single function for ASCII conversion. Optimize code. Check for
XML_ENC_ERR_SPACE.
|
|
501e5d19
|
2024-06-28T04:10:03
|
|
encoding: Stop using XML_ENC_ERR_PARTIAL
|
|
37a9ff11
|
2024-06-28T22:42:46
|
|
encoding: Simplify xmlCharEncCloseFunc
|
|
221df375
|
2024-06-28T00:34:52
|
|
parser: Support custom charset conversion implementations
Implement xmlCtxtSetCharEncConvImpl. I agree that the name is terrible.
|
|
c59c2449
|
2024-06-27T23:32:58
|
|
encoding: Support custom implementations
|
|
1167c334
|
2024-06-28T21:51:21
|
|
encoding: Don't include iconv.h from libxml/encoding.h
|
|
1e3da9f4
|
2024-06-27T21:37:18
|
|
encoding: Start with callbacks
|
|
6d8427dc
|
2024-06-27T20:39:52
|
|
encoding: Rework encoding lookup
Add missing xmlCharEncoding enum values.
Simplify and speed up encoding lookup by using a table mapping names to
xmlCharEncoding enums and binary search. Rearrange the default handler
table to match the enum layout.
For some encodings we now only lookup the provided or most canonical
name instead of trying several names, expecting that iconv or ICU handle
aliases:
- IBM037 (EBCDIC)
- UCS-2
- UCS-4
- Shift_JIS
|
|
95d36333
|
2024-06-28T21:19:44
|
|
encoding: Rework conversion error codes
This should match the old code more closely. Remove XML_ERR_PARTIAL.
It's unlikely that anyone is using these codes already.
|
|
dd8e3785
|
2024-06-28T21:15:27
|
|
HTML: Rework UTF8ToHtml
Optimize code. Check for XML_ENC_ERR_SPACE. Use error macros.
|
|
30be984a
|
2024-06-28T20:37:47
|
|
encoding: Rework ISO-8859-X conversion
Optimize code. Pass tables as context parameter. Check for
XML_ENC_ERR_SPACE.
|
|
282ec1d5
|
2024-06-28T19:06:57
|
|
encoding: Rework xmlCharEncodingHandler layout
Reuse some of the old members.
The "input" and "output" function pointers are actually of type
xmlCharEncConvFunc, accepting an additional argument. For default
handlers, this argument is unused, so this should work with most ABIs.
For iconv handlers, these function pointers used to be NULL but now
point to a function which requires the extra argument.
"iconv_in" and "iconv_out" are made void pointers. "uconv_in" and
"uconv_out" are renamed and made void pointers. This is unlikely to
cause issues.
We now expect that the built-in conversion functions correctly report
XML_ENC_ERR_SPACE. For UTF8ToHtml and the ISO-8859-X code, this will be
done in the following commits.
|
|
57e37dff
|
2017-06-17T21:43:48
|
|
encoding: Rework UTF-16 conversion functions
Optimize UTF-16 conversion functions. Avoid misaligned memory access.
Don't rely on 'sizeof(short) == 2'. Check for XML_ENC_ERR_SPACE. Add
some tests for UTF-16 conversion.
|
|
16e7ecd4
|
2024-07-01T16:01:24
|
|
xinclude: Check URI length
Don't report long URIs as OOM errors.
|
|
37f72370
|
2024-07-01T15:31:58
|
|
xmllint: Fix unsigned integer overflow
Short-lived regression.
|
|
64b0c64e
|
2024-06-29T16:53:32
|
|
cmake: Don't install man pages if LIBXML2_WITH_PROGRAMS=OFF
|
|
a24b08bf
|
2024-07-01T15:47:29
|
|
meson: Don't always assume PThreads when using threads
The libxml2 code has support for Windows threads as well, so use these
instead on Windows when building threads support,
|
|
64685e98
|
2024-06-28T22:04:50
|
|
autotools: Remove NON_PC_LIBS
Improves modularization.
|
|
044ddf07
|
2024-06-28T03:14:12
|
|
parser: Undeprecate some parser context members
|
|
e72eda10
|
2024-06-28T01:41:36
|
|
parser: Add NULL check in xmlNewIOInputStream
|
|
bc793390
|
2024-06-27T16:23:14
|
|
parser: Update documentation
|
|
f4e63f7a
|
2024-06-27T15:15:06
|
|
Regenerate libxml2-api.xml and testapi.c
|
|
193f4653
|
2024-06-26T19:28:28
|
|
parser: Implement xmlCtxtGetStatus
This allows access to ctxt->wellFormed, ctxt->nsWellFormed and
ctxt->valid. It also detects several fatal non-parser errors which
really should be another error level.
|
|
f505dcae
|
2024-06-26T14:11:34
|
|
tree: Remove underscores from xmlRegisterCallbacks
|
|
cc0cc2d3
|
2024-06-26T04:32:49
|
|
parser: Add more parser context accessors
|
|
8b1f79ce
|
2024-06-26T04:30:38
|
|
SAX2: Make xmlSAXDefaultVersion a no-op
|
|
5cf5b542
|
2024-06-26T04:30:10
|
|
SAX2: Deprecate xmlSAX2StartElement
|
|
71eb7109
|
2024-06-26T04:29:11
|
|
xmllint: Switch to xmlCtxtSetErrorHandler
|
|
c5750fc6
|
2024-06-26T04:28:36
|
|
python: Switch to xmlCtxtSetErrorHandler
|
|
eca972e6
|
2024-06-26T02:22:04
|
|
parser: Add getters for XML declaration to parser context
Access to struct members will be deprecated.
|
|
598ee0d2
|
2024-06-26T01:18:55
|
|
error: Remove underscores from xmlRaiseError
|
|
3ff8a2c4
|
2024-06-26T01:08:48
|
|
parser: Deprecate xmlIsLetter
|
|
fa50be92
|
2024-06-25T23:19:56
|
|
parser: Move implementation of xmlCtxtGetLastError
|
|
7c11da2d
|
2024-06-27T12:47:47
|
|
tests: Clarify licence of test/intsubset2.xml
|
|
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.
|
|
e6f25fdc
|
2024-06-26T14:15:26
|
|
uri: Fix documentation of xmlBuildRelativeURI
|
|
c195f06f
|
2024-06-25T22:14:47
|
|
autotools: Use AX_GCC_FUNC_ATTRIBUTE from autoconf archives
|
|
1afaa371
|
2024-06-25T22:06:36
|
|
build: Move definition of ATTRIBUTE_DESTRUCTOR to libxml.h
|
|
fd099dd8
|
2024-06-24T20:37:39
|
|
autotools: Fix pkg.m4 check
|
|
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.
|
|
54c6c7e4
|
2024-06-23T21:51:52
|
|
uri: Only set file scheme for special Windows paths
Fixes 2ce70cde.
Also fix a test case.
|
|
ec47add4
|
2024-06-24T01:06:08
|
|
configure.ac: fix bashisms
'==' is a bashism, so use the POSIX '=' instead.
|
|
c14c20f5
|
2024-06-23T18:50:59
|
|
doc: Add note about meson.build version bump
|
|
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.
|
|
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.
|
|
600c6ca4
|
2024-06-23T12:16:47
|
|
cmake: Don't install meson build scripts in documentation
Add meson.build files as exclusions
|
|
28b9bb03
|
2024-06-22T21:51:52
|
|
uri: Enable Windows paths on Cygwin
|
|
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.
|
|
b8903b9e
|
2024-06-22T17:55:46
|
|
runtest: Remove result handling from schemasOneTest
We only care about errors.
|
|
a4703785
|
2024-06-22T17:49:14
|
|
runtest: Remove result handling from rngOneTest
We only care about errors.
|
|
e68ccfa9
|
2024-06-22T16:42:36
|
|
tests: Port Schematron tests to C
|
|
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.
|
|
0a279e2f
|
2024-06-22T04:00:33
|
|
tests: Remove old timing tests
|
|
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.
|
|
2d96adb2
|
2024-06-22T21:28:40
|
|
windows: fopen files with "wb"
|
|
5589c9ea
|
2024-06-22T21:01:38
|
|
xmllint: Set stdin/stdout to binary on Windows
|
|
4b6e6828
|
2024-06-22T02:34:36
|
|
cmake: Stop using win32config.h
Move this file to the win32 subdirectory.
|
|
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.
|
|
f23fc4fa
|
2024-06-22T02:10:54
|
|
xmllint: Simplify time handling
Assume that gettimeofday is always available.
|
|
dc6f55cf
|
2024-06-22T00:35:14
|
|
build: Remove check for IPv6
Only check for availability of netdb.h.
|
|
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.
|
|
b01b55d5
|
2024-06-21T23:38:42
|
|
README: Fix Meson examples
|
|
88cc61e3
|
2024-06-20T22:09:55
|
|
meson: simplify thread_local check
Use a simple loop.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
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>
|
|
609c51c5
|
2024-06-20T21:33:15
|
|
meson: simplify socklen_t check
Use a simple loop.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
9d46da17
|
2024-06-21T23:10:21
|
|
ci: Test meson build with legacy enabled
|
|
c2ccbc0f
|
2024-06-21T22:45:15
|
|
meson: Implement option dependencies
This also removes the FreeBSD hack.
|
|
f9c33a55
|
2024-06-21T18:25:11
|
|
parser: Undeprecate some xmlParserInput members
|
|
1228b4e0
|
2024-06-21T18:22:04
|
|
parser: Deprecate xmlParserCtxt->lastError
We alredy have xmlCtxtGetLastError().
|
|
f82ca02b
|
2024-06-21T18:17:11
|
|
parser: Undeprecate some xmlParserCtxt members
These are essential for SAX parsers.
|
|
7ba6c8fe
|
2024-06-21T04:59:11
|
|
autotools: Remove libxml-2.0-uninstalled.pc
|
|
c106455c
|
2024-06-21T04:18:04
|
|
build: Set Cflags.private on Windows
|
|
1a5ed747
|
2024-06-21T03:38:11
|
|
build: Fix XML_LIBDIR usage
|
|
fc4bd04b
|
2024-06-21T03:32:30
|
|
autotools: Remove unused variable
|
|
4c1b8851
|
2024-06-21T03:26:54
|
|
autotools: Move MODULE_PLATFORM_LIBS into NON_PC_LIBS
|
|
29bf09ec
|
2024-06-21T03:16:44
|
|
autotools: Remove XML_LIBTOOLLIBS
|
|
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.
|
|
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>
|
|
5803ad26
|
2024-06-18T17:05:09
|
|
meson: change history to a feature
Simpler.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
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>
|
|
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>
|
|
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.
|
|
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.
|
|
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>
|
|
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.
|
|
1dd5e76a
|
2024-06-17T21:06:46
|
|
xinclude: Don't remove root element
Don't replace include element at root with empty nodeset.
|
|
860fb460
|
2024-06-17T20:58:27
|
|
SAX2: Fix null deref after malloc failure
Short-lived regression.
|
|
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>
|
|
f61d23b8
|
2024-06-16T19:56:07
|
|
meson: only apply threads_dep to runtest
Not needed elsewhere.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
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.
|
|
52ce0d70
|
2024-06-17T17:35:12
|
|
tests: Add XInclude test for issue #733
|
|
c5e9a5b2
|
2024-06-17T15:29:56
|
|
parser: Use catalogs with resource loader
|