diff options
author | pav <pav@FreeBSD.org> | 2004-03-18 23:48:14 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-03-18 23:48:14 +0800 |
commit | a179e52a3ac6dc190cfc9784a47b9f6e67fc68f5 (patch) | |
tree | 938a0310538cc779abd51bbd8a4894bd65ae26de /textproc/xerces-c27 | |
parent | 722935c1d8724133fd5d075702bf337d08fa8ca2 (diff) | |
download | freebsd-ports-gnome-a179e52a3ac6dc190cfc9784a47b9f6e67fc68f5.tar.gz freebsd-ports-gnome-a179e52a3ac6dc190cfc9784a47b9f6e67fc68f5.tar.zst freebsd-ports-gnome-a179e52a3ac6dc190cfc9784a47b9f6e67fc68f5.zip |
- Fix bug with trimming text when using TRANSCODER==IconvFBSD
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27769
PR: ports/64413
Submitted by: Bjoern A. Zeeb <bzeeb+freebsdports@zabbadoz.net> (maintainer)
Diffstat (limited to 'textproc/xerces-c27')
-rw-r--r-- | textproc/xerces-c27/Makefile | 2 | ||||
-rw-r--r-- | textproc/xerces-c27/files/patch-ab | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/textproc/xerces-c27/Makefile b/textproc/xerces-c27/Makefile index 1b8d9cf1e27e..14515e8ad5e0 100644 --- a/textproc/xerces-c27/Makefile +++ b/textproc/xerces-c27/Makefile @@ -7,7 +7,7 @@ PORTNAME= xerces-c2 PORTVERSION= 2.5.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_APACHE_XML} MASTER_SITE_SUBDIR= xerces-c/source diff --git a/textproc/xerces-c27/files/patch-ab b/textproc/xerces-c27/files/patch-ab new file mode 100644 index 000000000000..dc9393db3e6e --- /dev/null +++ b/textproc/xerces-c27/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 |