Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jan 2005 11:53:41 -0500
From:      "Michael Scheidell" <scheidell@secnap.net>
To:        <ports@freebsd.org>
Cc:        Nakai@technologist.com
Subject:   Fix for 
Message-ID:  <B3BCAF4246A8A84983A80DAB50FE724235297F@secnap2.secnap.com>

next in thread | raw e-mail | index | archive | help
Posted in xml, gnome and org.  (november 29th)
Ports cvsup os of jan 15th still didn't fix this.

Patch to fix this below


> > libxml2-2.6.16 build errors out on MINGW with MSYS in
> > encoding.c: In function `ISO8859xToUTF8':encoding.c:2338:=20
> `xlattable'=20
> > undeclared (first use in this function)
>=20
> Open the file in an editor, go to line 2338, and replace=20
> "xlattable" with
> "unicodetable". It compiles fine afterward. Apparently this=20
> line of code was
> copied from another function in which "xlattable" was the=20
> name of the function
> parameter, and the author didn't think to rename the variable=20
> when he copied it.

diff -bBru encoding.c.orig encoding.c
--- encoding.c.orig     Sat Nov  6 07:19:31 2004
+++ encoding.c  Sat Jan 15 11:50:07 2005
@@ -2335,7 +2335,7 @@
     unsigned int c;

     if ((out =3D=3D NULL) || (outlen =3D=3D NULL) || (inlen =3D=3D =
NULL) ||
-        (in =3D=3D NULL) || (xlattable =3D=3D NULL))
+        (in =3D=3D NULL) || (unicodetable =3D=3D NULL))
        return(-1);
     outend =3D out + *outlen;
     inend =3D in + *inlen;

--=20
Michael Scheidell, CTO
561-999-5000, ext 1131
SECNAP Network Security Corporation
Keep up to date with latest information on IT security: Real time
security alerts: http://www.secnap.com/news
=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B3BCAF4246A8A84983A80DAB50FE724235297F>