Fix for

Michael Scheidell scheidell at secnap.net
Sat Jan 15 08:53:44 PST 2005


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: 
> `xlattable' 
> > undeclared (first use in this function)
> 
> Open the file in an editor, go to line 2338, and replace 
> "xlattable" with
> "unicodetable". It compiles fine afterward. Apparently this 
> line of code was
> copied from another function in which "xlattable" was the 
> name of the function
> parameter, and the author didn't think to rename the variable 
> 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 == NULL) || (outlen == NULL) || (inlen == NULL) ||
-        (in == NULL) || (xlattable == NULL))
+        (in == NULL) || (unicodetable == NULL))
        return(-1);
     outend = out + *outlen;
     inend = in + *inlen;

-- 
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
 


More information about the freebsd-ports mailing list