#247 Fixed build with ICU 68.2-1

This commit is contained in:
Vincent Richard 2021-01-11 22:04:52 +01:00
parent 3733af5191
commit ec5b8f7cfe

View File

@ -413,7 +413,7 @@ void charsetFilteredOutputStream_icu::writeImpl(
ucnv_toUnicode( ucnv_toUnicode(
m_from, &uniTarget, uniTargetLimit, m_from, &uniTarget, uniTargetLimit,
&uniSource, uniSourceLimit, NULL, /* flush */ FALSE, &toErr &uniSource, uniSourceLimit, NULL, /* flush */ UBool(0), &toErr
); );
if (U_FAILURE(toErr) && toErr != U_BUFFER_OVERFLOW_ERROR) { if (U_FAILURE(toErr) && toErr != U_BUFFER_OVERFLOW_ERROR) {
@ -509,7 +509,7 @@ void charsetFilteredOutputStream_icu::flush() {
ucnv_toUnicode( ucnv_toUnicode(
m_from, &uniTarget, uniTargetLimit, m_from, &uniTarget, uniTargetLimit,
&uniSource, uniSourceLimit, NULL, /* flush */ TRUE, &toErr &uniSource, uniSourceLimit, NULL, /* flush */ UBool(1), &toErr
); );
if (U_FAILURE(toErr) && toErr != U_BUFFER_OVERFLOW_ERROR) { if (U_FAILURE(toErr) && toErr != U_BUFFER_OVERFLOW_ERROR) {
@ -540,7 +540,7 @@ void charsetFilteredOutputStream_icu::flush() {
ucnv_fromUnicode( ucnv_fromUnicode(
m_to, &cpTarget, cpTargetLimit, m_to, &cpTarget, cpTargetLimit,
&cpSource, cpSourceLimit, NULL, /* flush */ TRUE, &fromErr &cpSource, cpSourceLimit, NULL, /* flush */ UBool(1), &fromErr
); );
if (fromErr != U_BUFFER_OVERFLOW_ERROR && U_FAILURE(fromErr)) { if (fromErr != U_BUFFER_OVERFLOW_ERROR && U_FAILURE(fromErr)) {