Skip to content

Commit

Permalink
fix last fix lol
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed Nov 9, 2023
1 parent 8100d47 commit d727bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stri_stringi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d727bce

Please sign in to comment.