applying patch from Peter Jacobi to added ISO-8859-x encoding support when

* 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
This commit is contained in:
Daniel Veillard 2003-07-30 15:12:01 +00:00
parent c266464174
commit 01fc1a9d5a
5 changed files with 1105 additions and 0 deletions

View File

@ -1,3 +1,11 @@
Wed Jul 30 11:08:21 EDT 2003 Daniel Veillard <daniel@veillard.com>
* 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
Tue Jul 29 16:43:48 EDT 2003 Daniel Veillard <daniel@veillard.com>
* python/generator.py python/libxml.c python/libxml2class.txt:

View File

@ -649,6 +649,17 @@ M_LIBS="-lm"
XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
AC_SUBST(WITH_ICONV)
WITH_ISO8859X=1
AC_ARG_WITH(iso8859x,
[ --with-iso8859x add ISO8859X support if no iconv (on)])
if test "$WITH_ICONV" != "1" ; then
if test "$with_iso8859x" = "no" ; then
echo Disabling ISO8859X support
WITH_ISO8859X=0
fi
fi
AC_SUBST(WITH_ISO8859X)
AC_ARG_WITH(schemas,
[ --with-schemas add experimental Schemas/RelaxNG support (on)])
if test "$with_schemas" = "no" ; then

1068
encoding.c

File diff suppressed because it is too large Load Diff

View File

@ -171,6 +171,15 @@ extern void xmlCheckVersion(int version);
#define LIBXML_ICONV_ENABLED
#endif
/**
* LIBXML_ISO8859X_ENABLED:
*
* Whether ISO-8859-* support is made available in case iconv is not
*/
#if @WITH_ISO8859X@
#define LIBXML_ISO8859X_ENABLED
#endif
/**
* LIBXML_DEBUG_ENABLED:
*

View File

@ -166,6 +166,15 @@ extern void xmlCheckVersion(int version);
#define LIBXML_ICONV_ENABLED
#endif
/**
* LIBXML_ISO8859X_ENABLED:
*
* Whether ISO-8859-* support is made available in case iconv is not
*/
#if 1
#define LIBXML_ISO8859X_ENABLED
#endif
/**
* LIBXML_DEBUG_ENABLED:
*