summaryrefslogtreecommitdiff
path: root/deps/icu-small/source/common/ustrcase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'deps/icu-small/source/common/ustrcase.cpp')
-rw-r--r--deps/icu-small/source/common/ustrcase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/icu-small/source/common/ustrcase.cpp b/deps/icu-small/source/common/ustrcase.cpp
index 69c17e43b9..be5c988bd1 100644
--- a/deps/icu-small/source/common/ustrcase.cpp
+++ b/deps/icu-small/source/common/ustrcase.cpp
@@ -305,6 +305,9 @@ ustrcase_internalToTitle(const UCaseMap *csm,
src, &csc,
titleLimit, idx,
pErrorCode);
+ if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR) {
+ *pErrorCode=U_ZERO_ERROR;
+ }
if(U_FAILURE(*pErrorCode)) {
return destIndex;
}