mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
8ad00e7a22
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27769 PR: ports/64413 Submitted by: Bjoern A. Zeeb <bzeeb+freebsdports@zabbadoz.net> (maintainer)
15 lines
581 B
Plaintext
15 lines
581 B
Plaintext
--- 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
|