1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-14 22:50:08 +03:00

4171 Commits

Author SHA1 Message Date
Daniel Veillard
fec31bcd45 Small fix for previous commit 2010-11-18 11:07:24 +01:00
Daniel Veillard
df83c17e5a Fix a potential freeing error in XPath 2010-11-17 14:12:14 +01:00
Daniel Veillard
ae874211d4 634846 Remove a linking option breaking Windows VC10
as pointed out by David Connet <dcon@agilityrecordbook.com>
2010-11-17 14:10:39 +01:00
Andrew W. Nosenko
d794a84a9e 599241 fix an initialization problem on Win64
as the thread_t is not an integral datatype on that platform
2010-11-15 13:00:29 +01:00
Daniel Veillard
0cbeb50ee0 Fix a potential memory access error
in case of a previus allocation error
2010-11-15 12:10:14 +01:00
Rob Richards
364e3d2b05 fix win build 2010-11-10 10:13:51 -05:00
Daniel Veillard
0081987765 Reactivate the shared library versionning script 2010-11-04 21:53:14 +01:00
Daniel Veillard
4c2e7c651f Release of libxml2-2.7.8 v2.7.8 2010-11-04 18:35:57 +01:00
Daniel Veillard
82143f4e2a 595789 fix a remaining potential Solaris problem 2010-11-04 17:55:41 +01:00
Giuseppe Iuculano
48f7dcb724 480323 add code to plug in ICU converters by default
This is not configured in by default but after some serious massaging
incorporate that patch from Chromium/Chrome.
2010-11-04 17:42:42 +01:00
LRN
fbd4ddf226 607273 Fix python detection on MSys/Windows
Fix the lookup for python executable and headers, add an
extra variable for new dependancies when linking for Python
on Win32
2010-11-04 15:45:46 +01:00
Daniel Veillard
60587d6ebd 606592 update language ID parser to RFC 5646
Mostly except we keep support for some older constructs and
don't implement extension or privateuse. It's messy because
it's used mostly by XSD datatype which itself reference RFC 3066
and suggests a lexical space completely different from what
5646 defines.
2010-11-04 15:16:27 +01:00
Denis Pauk
91d239c5cf 617468 fix progressive HTML parsing with style using "'"
Style and script can contain ',"". This patch fixes call
htmlParseLookupSequence with set flag 'ignoreattrval' to
ignore this char
2010-11-04 12:39:18 +01:00
Ozkan Sezer
f99d222316 614087 Fix Socket API usage to allow Windows64 compilation
In Windows 64 a socket is no more represented by an int,
this breaks the nanoftp API and nanoftp/nanohttp, the patch
changes this and fix the API for Win64
Regenerated the XML and documentation as a result too.
2010-11-04 12:08:08 +01:00
Gwenn Kahz
ce5f9a7d6b 616478 Fix xmllint shell write command
The current node wasn't passed down !
2010-11-04 10:48:25 +01:00
Pierre Belzile
d4b5447141 614005 Possible erroneous HTML parsing on unterminated script
Fix a nasty error handling problem when an error happen at the
end of the input buffer.
2010-11-04 10:18:17 +01:00
Adrian Bunk
37072b753b 618831 don't ship generated files in git
remove INSTALL config.h.in install-sh missing
2010-11-04 09:56:39 +01:00
Adrian Bunk
64b0d60c28 Switch from the obsolete mkinstalldirs to AC_PROG_MKDIR_P
This was obsoleted in 2005 so we should be safe.
But keep AC_PREREQ to 2.59 as it's still widely deployed.
2010-11-04 09:43:31 +01:00
Jim Panetta
c84e863c9c 627987 Fix XSD IDC errors in imported schemas
Fix XSD IDC references when xsi:schemalocation is used for
referencing the validation schemas
2010-11-03 21:05:18 +01:00
Phil Shafer
ee32ad3c0f 629325 XPath rounding errors first cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=629325
not a full solution as Vincent Lefevre pointed out but
an incremental improvement over the status-quo
2010-11-03 20:53:55 +01:00
Daniel Veillard
ad4f0a2dc8 630140 better fix for iso995x encoding error
Changing semantic of xmlCharEncInFunc() wasn't the proper way to
do this, better change UTF8ToISO8859x() appropriately
2010-11-03 20:40:46 +01:00
Daniel Veillard
1cc912ec7e Various cleanups on encoding handling
Done while chasing previous bug
2010-11-03 19:26:35 +01:00
Daniel Veillard
083caf5ec8 630140 fix iso995x encoding error
https://bugzilla.gnome.org/show_bug.cgi?id=630140
Fix the bug, which happen when using the embedded converters and
not iconv
2010-11-03 19:24:05 +01:00
Koop Mast
e306260f54 Fix compilation with Clang
Don't redefine vsnprintf if it is available
2010-11-03 16:10:26 +01:00
Adam Spragg
d2e62311cd Add xmlSaveOption XML_SAVE_WSNONSIG
non destructive indentation option using spaces within markup
constructs and hence not modifying content
* include/libxml/xmlsave.h: new option
* xmlsave.c: some refactoring and new code for the new option
* xmllint.c: adds --pretty option where option 2 uses the new formatting
2010-11-03 15:33:40 +01:00
Adam Spragg
5f9d9ceb3d Fix xmllint to use format=1 for default formatting
* xmllint.c: again the goal is ultimately to use other values for
  a different semantic.
2010-11-01 14:27:11 +01:00
Adam Spragg
8b877135a3 Force _xmlSaveCtxt.format to be 0 or 1
* xmlsave.c: force _xmlSaveCtxt.format to be 0 or 1 and check
  accordingly, this will allow other values of "format" to be used
  for other purposes.
2010-11-01 14:24:56 +01:00
Nikolay Sivov
e6ad10a5b9 Cleanup encoding pointer comparison
* parser.c: Compare encoding pointer with a NULL instead of
  xmlCharEncoding enum value 0 then casted to char * !
2010-11-01 11:35:14 +01:00
Daniel Veillard
8ad2930f62 make sure htmlCtxtReset do reset the disableSAX field
As pointed out by Stefan Behnel <stefan_ml@behnel.de>
2010-10-28 11:51:22 +02:00
Daniel Veillard
ea90b89414 Fix a change of semantic on XPath preceding and following axis
This was introduced in the prevous fix, while preceding-sibling and
following sibling axis are empty for attributes and namespaces,
preceding and following axis should still work based on the parent
element. However the parent element is not available for a namespace
node, so we keep the axis empty in that case.
2010-10-22 15:50:50 +02:00
Mike Hommey
e6f05099e8 Fix a potential segfault due to weak symbols on pthreads
In xmlInitParser, both __xmlGlobalInitMutexLock and xmlInitGlobals are
called before xmlInitThreads, and both use pthread symbols.
__xmlGlobalInitMutexLock does so directly, without checking if the symbol
exists, and xmlInitGlobals calls xmlNewMutex, which correctly depends on
libxml_is_threaded... except libxml_is_threaded is still -1 by then...
And again, when releasing the global mutex in __xmlGlobalInitMutexUnlock,
the pthread function is called directly.

The patch changes the initialization order and make sure the functions
are available before calling them
2010-10-15 19:50:03 +02:00
Mike Hommey
3c79510d90 Fix devhelp documentation installation
When doing an out of tree build
2010-10-15 18:50:41 +02:00
Mike Hommey
10455bb48f Sort python generated stubs
to avoid shuffling each time python changes or on different
architectures
2010-10-15 18:39:50 +02:00
Daniel Veillard
2f3523f61f Fix a leak in XPath compilation
Sometimes a not well formed XPath expression could lead to a
leak as reported by Ralf Junker <ralfjunker@gmx.de>
2010-10-15 18:30:29 +02:00
Daniel Veillard
91d19754d4 Fix the semantic of XPath axis for namespace/attribute context nodes
The processing of namespace and attributes nodes was not compliant
to the XPath-1.0 specification
2010-10-15 14:30:52 +02:00
Carlo Bramini
c43ac66988 Avoid a descriptor leak in catalog loading code
File descriptors could be leaked in xmlLoadFileContent()
2010-10-14 14:27:54 +02:00
Marius Wachtler
2ddecc2386 Fix a small bug in XPath evaluation code 2010-10-12 09:09:07 +02:00
Daniel Veillard
d2190faf78 Fix web site encoding problems
The encoding.html page was generated incorectly, revamp the input
xml.html and convert the full XSLT chain to use and serve it as
UTF-8
* doc/*: fix xml.html, update all stylesheets and regenerate
2010-09-30 13:58:22 +02:00
Daniel Veillard
aa54d37cd7 Fix handling of XML-1.0 XML namespace declaration
Usually 'xml' namespace for XML-1.0 declaration does not need
to be carried but Mike Hommey raised the problem that the SVG
XSD file fails to parse due to a mishandling.
- SAX2.c: failure to create a namespace should not be interpreted
  as a memory allocation error
- tree.c: document better xmlNewNs behaviour, and fix it in the
  case the 'xml' prefix is being used.
2010-09-09 18:17:47 +02:00
Michael Day
af58ee130f Fix a couple of typo in HTML parser error messages 2010-08-02 13:43:28 +02:00
Daniel Veillard
1ea9590046 Small code cleanup on previous patch
suggested by Andrew Nosenko
2010-07-28 14:49:55 +02:00
Csaba Raduly
5f8f5e7add Fix errors in XSD double validation check
- xmlschemastypes.c: "e" and "E" should not be accespted as is, digits
  are needed
2010-07-28 11:41:23 +02:00
Daniel Veillard
f1121c48af Add an HTML parser option to avoid a default doctype
- include/libxml/HTMLparser.h: defines the new HTML parser option
  HTML_PARSE_NODEFDTD
- HTMLparser.c: if option is set don't add a default DTD
- xmllint.c: add the corresponding --nodefdtd option in xmllint
2010-07-26 14:02:42 +02:00
Daniel Veillard
2ee91eb658 Fix handling of apos in URIs
François Delyon <f.delyon@satimage.fr> pointed out a divergence between
the URI code and RFC 3986, fix trivial and seems to not break regression
tests
2010-06-04 09:14:16 +08:00
Rob Richards
5b9dde3eed xmlTextReaderReadOuterXml should handle DTD
* xmlreader.c: fix description of xmlTextReaderReadOuterXml and support DTD
2010-05-05 07:59:44 -04:00
Rob Richards
bdf24b9f9b Autogen.sh needs to create m4 directory
* autogen.sh: create m4 directory if not already existing
2010-04-26 16:09:34 -04:00
Daniel Veillard
f61ba8d0ce Forgot to update the news page for 0.7.7 2010-03-25 10:54:32 +01:00
Rob Richards
a295fbc4cc Fix Win32 build
* libxml.h win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc: add
  NOLIBTOOL flag to prevent automatic define of LIBXML_STATIC
2010-03-19 06:31:55 -04:00
Daniel Veillard
bb5055f387 Release of libxml2-2.7.7
* configure.in: bump version
* doc//*: regenerated
v2.7.7
2010-03-15 16:21:00 +01:00
Daniel Veillard
06c93b7509 Remove a few warnings 2010-03-15 16:08:44 +01:00