ICU-5261 Undo the fix for Solaris 10 until a better solution is found.

X-SVN-Rev: 19841
This commit is contained in:
George Rhoten 2006-07-13 22:35:52 +00:00
parent 7565180024
commit 62b5e40321

View file

@ -230,11 +230,12 @@ UnicodeString::doExtract(int32_t start, int32_t length,
if(destCapacity==0) {
destLimit=dest=0;
} else if(destCapacity==-1) {
// Pin the limit to U_MAX_PTR if the "magic" destCapacity is used.
destLimit=(char*)U_MAX_PTR(dest);
// for NUL-termination, translate into highest int32_t
destCapacity=0x7fffffff;
} else {
if(destCapacity==-1) {
// Pin the limit to the max bytes per UChar if the "magic" destCapacity is used.
destCapacity=UCNV_GET_MAX_BYTES_FOR_STRING(length, ucnv_getMaxCharSize(cnv));
}
destLimit=dest+destCapacity;
}