- Add patch to chase latest API-change in libxml2

- Bump PORTREVISION
This commit is contained in:
Markus Brueffer 2004-12-01 22:33:51 +00:00
parent f13ef58534
commit 4545505b26
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122943
4 changed files with 48 additions and 0 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= dclib
PORTVERSION= 0.3.3
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://download.berlios.de/dcgui/

View File

@ -0,0 +1,23 @@
--- dclib/core/cxml.cpp.orig Thu Aug 12 10:32:06 2004
+++ dclib/core/cxml.cpp Wed Dec 1 23:14:00 2004
@@ -149,10 +149,8 @@
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);
+ r = (char*)b;
free(b);
@@ -180,7 +178,7 @@
if ( res == -1 )
printf("isolat1ToUTF8 fail: '%s'\n",s);
- else if ( res == 0 )
+ else
r = (char*)b;
free(b);

View File

@ -8,6 +8,7 @@
PORTNAME= dclib
PORTVERSION= 0.3.3
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://download.berlios.de/dcgui/

View File

@ -0,0 +1,23 @@
--- dclib/core/cxml.cpp.orig Thu Aug 12 10:32:06 2004
+++ dclib/core/cxml.cpp Wed Dec 1 23:14:00 2004
@@ -149,10 +149,8 @@
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);
+ r = (char*)b;
free(b);
@@ -180,7 +178,7 @@
if ( res == -1 )
printf("isolat1ToUTF8 fail: '%s'\n",s);
- else if ( res == 0 )
+ else
r = (char*)b;
free(b);