aboutsummaryrefslogtreecommitdiff
path: root/textproc/xerces-c2/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-03-18 15:48:14 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-03-18 15:48:14 +0000
commit8ad00e7a2207e6eefce2faf48d04d384ad7421f9 (patch)
tree5dca9bd8cd0e3979f45047f50534db54e28e38c9 /textproc/xerces-c2/files
parent3595c24ff8a5c65ed8c6a615e654d1cc9e4ece85 (diff)
downloadports-8ad00e7a2207e6eefce2faf48d04d384ad7421f9.tar.gz
ports-8ad00e7a2207e6eefce2faf48d04d384ad7421f9.zip
Notes
Diffstat (limited to 'textproc/xerces-c2/files')
-rw-r--r--textproc/xerces-c2/files/patch-ab14
1 files changed, 14 insertions, 0 deletions
diff --git a/textproc/xerces-c2/files/patch-ab b/textproc/xerces-c2/files/patch-ab
new file mode 100644
index 000000000000..dc9393db3e6e
--- /dev/null
+++ b/textproc/xerces-c2/files/patch-ab
@@ -0,0 +1,14 @@
+--- src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp.orig Thu Mar 18 10:44:13 2004
++++ src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp Thu Mar 18 10:47:04 2004
+@@ -1340,6 +1340,11 @@
+ if (wBufPtr)
+ manager->deallocate(wBufPtr);//delete [] wBufPtr;
+
++ // iconvTo resp. iconv(3) doe NOT return number of characters
++ // converted but only number of non-reversible conversions;
++ // thus we need to calculate correct mblen on our own
++ mblen = ptr - toFill;
++
+ #endif /* !XML_USE_LIBICONV */
+
+ // Cap it off just in case