From d727bce695af5004770880325db4117ce5695a8b Mon Sep 17 00:00:00 2001 From: gagolews Date: Thu, 9 Nov 2023 11:40:40 +1100 Subject: [PATCH] fix last fix lol --- src/stri_stringi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stri_stringi.cpp b/src/stri_stringi.cpp index 2b9aa724..615a196b 100644 --- a/src/stri_stringi.cpp +++ b/src/stri_stringi.cpp @@ -306,7 +306,7 @@ extern "C" void R_init_stringi(DllInfo* dll) if (stri__is_C_locale(uloc_getDefault())) { // C locale -> en_US_POSIX status = U_ZERO_ERROR; uloc_setDefault("en_US_POSIX", &status); - Rf_error("ICU init failed: %s", u_errorName(status)); + if (U_FAILURE(status)) Rf_error("ICU init failed: %s", u_errorName(status)); } R_registerRoutines(dll, NULL, cCallMethods, NULL, NULL);