Subject: Re: libxml2 needs converters/libiconv on NetBSD > 1.6, DragonFlyBSD and Solaris
To: None <pkgsrc-users@NetBSD.org>
From: Christian Biere <christianbiere@gmx.de>
List: pkgsrc-users
Date: 04/02/2006 20:52:31
--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
joerg@britannica.bec.de wrote:
> > At this point, libxml2 and thus libxslt/xsltproc are broken on several
> > pkgsrc platforms where non-western code sets are concerned. Shouldn't
> > we address this in the short term by using converters/libiconv?
=20
> Or you could try the attached patch :-)
> +--- encoding.c.orig 2005-09-02 12:23:19.000000000 +0000
> ++++ encoding.c
> +@@ -1709,6 +1709,8 @@ xmlIconvWrapper(iconv_t cd, unsigned cha
> + *inlen =3D 0;
> + *outlen =3D 0;
> + }
> ++ if (ret > 0)
> ++ return -2;
> + if ((icv_inlen !=3D 0) || (ret =3D=3D -1)) {
> + #ifdef EILSEQ
> + if (errno =3D=3D EILSEQ) {
I think you have to correct "*inlen" and "*outlen" for bug-compatibility
as well.
--=20
Christian
--9jxsPFA5p3P2qPhR
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (NetBSD)
iD8DBQFEMB1v0KQix3oyIMcRAumAAJ9Sbl7CTjYKdEi8bqo1+egIO7sm5wCfZRTS
WyLTVNE1Uhzhehkdcb0Ml+o=
=RMqh
-----END PGP SIGNATURE-----
--9jxsPFA5p3P2qPhR--