Skip to content

Instantly share code, notes, and snippets.

@kallisti5
Created January 19, 2024 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kallisti5/c9fba7345fd7bc460298f412a70ed860 to your computer and use it in GitHub Desktop.
Save kallisti5/c9fba7345fd7bc460298f412a70ed860 to your computer and use it in GitHub Desktop.
ICU 66 to 74
diff --git a/src/system/libroot/add-ons/icu/ICUCtypeData.cpp b/src/system/libroot/add-ons/icu/ICUCtypeData.cpp
index 5e4319d483..2ecad3775f 100644
--- a/src/system/libroot/add-ons/icu/ICUCtypeData.cpp
+++ b/src/system/libroot/add-ons/icu/ICUCtypeData.cpp
@@ -544,9 +544,8 @@ ICUCtypeData::_GetConverterForMbState(mbstate_t* mbState,
// ... and clone it into the mbstate
UErrorCode icuStatus = U_ZERO_ERROR;
- int32_t bufferSize = sizeof(mbState->data);
UConverter* clone
- = ucnv_safeClone(icuConverter, mbState->data, &bufferSize, &icuStatus);
+ = ucnv_clone(icuConverter, &icuStatus);
if (clone == NULL || !U_SUCCESS(icuStatus))
return B_ERROR;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment