1 diff -ru clinkcc.orig/configure.in clinkcc/configure.in
2 --- clinkcc.orig/configure.in 2005-11-14 18:08:07.000000000 +0100
3 +++ clinkcc/configure.in 2005-11-14 18:08:13.000000000 +0100
5 AC_CHECK_FUNCS([iconv])
6 AC_CHECK_HEADERS([iconv.h])
7 AC_CHECK_LIB([iconv],[main])
10 ##############################
12 diff -ru clinkcc.orig/src/cybergarage/xml/XML.cpp clinkcc/src/cybergarage/xml/XML.cpp
13 --- clinkcc.orig/src/cybergarage/xml/XML.cpp 2005-11-14 18:08:07.000000000 +0100
14 +++ clinkcc/src/cybergarage/xml/XML.cpp 2005-11-14 18:08:13.000000000 +0100
16 char *cpbuf = strdup(str);
19 - const char *inbuf = cpbuf;
20 + ICONV_CONST char *inbuf = cpbuf;
21 size_t inbyteleft = strlen(str);
22 size_t outbufSize = inbyteleft * sizeof(UnicodeStr) * 4;
23 UnicodeStr *outbuf = new UnicodeStr[outbufSize + 1];
24 diff -ru clinkcc.orig/src/cybergarage/xml/libxml2/Libxml2Parser.cpp clinkcc/src/cybergarage/xml/libxml2/Libxml2Parser.cpp
25 --- clinkcc.orig/src/cybergarage/xml/libxml2/Libxml2Parser.cpp 2005-11-14 18:08:07.000000000 +0100
26 +++ clinkcc/src/cybergarage/xml/libxml2/Libxml2Parser.cpp 2005-11-14 18:08:44.000000000 +0100
28 xmlNodePtr child = cur->xmlChildrenNode;
\r
29 while ( child != NULL ) {
\r
31 - Node *newChildNode = convertToCLinkFormat( doc, child, depth 1 );
\r
32 + Node *newChildNode = convertToCLinkFormat( doc, child, depth );
\r
33 if ( newChildNode ) {
\r
34 newNode->addNode( newChildNode );
\r