Package: dcgui-qt
Version: 0.3.2-2
Followup-For: Bug #293865

Hi,

the bug is actually in libdc0. I've used the patch at
http://people.freebsd.org/~markus/stuff/patch-dclib-core-cxml.cpp_2 for
the last few days, it seems to fix the problem.

I can also confirm that the broken package leaves unusable configuration
files.

Since libxml2 is on its way to sarge, should this maybe be fasttracked
in some way?

Patch is attached.
--- dclib/core/cxml.cpp.orig    Thu Aug 12 10:32:06 2004
+++ dclib/core/cxml.cpp Thu Dec  2 01:08:00 2004
@@ -145,12 +145,12 @@
 
        res = UTF8Toisolat1( b, &outlen, (unsigned char*)s, &inlen );
 
-       if ( res == -2 )
+       if ( res >= 0 )
+               r = (char*)b;
+       else if ( res == -2 )
                printf("UTF8Toisolat1 transcoding fail: '%s'\n",s);
        else if ( res == -1 )
                printf("UTF8Toisolat1 fail: '%s'\n",s);
-       else if ( res == 0 )
-               r = (char*)b;
        else
                printf("CXml::xml_UTF8Toisolat1 error %d\n",res);
 
@@ -178,10 +178,12 @@
 
        res = isolat1ToUTF8( b, &outlen, (unsigned char*)s, &inlen );
 
-       if ( res == -1 )
+       if ( res >= 0 )
+               r = (char*)b;
+       else if ( res == -1 )
                printf("isolat1ToUTF8 fail: '%s'\n",s);
-       else if ( res == 0 )
-               r = (char*)b;
+       else
+               printf("CXml::xml_isolat1ToUTF8 error %d\n",res);
 
        free(b);
 

Reply via email to