Fix support data loading with system ICU

This commit is contained in:
Pāvels Nadtočajevs
2025-07-20 21:42:20 +02:00
committed by Travis Wrightsman
parent 71a9948157
commit ed0efc4791
2 changed files with 4 additions and 1 deletions

View File

@ -434,7 +434,7 @@ bool TextServerAdvanced::_has(const RID &p_rid) {
bool TextServerAdvanced::_load_support_data(const String &p_filename) {
_THREAD_SAFE_METHOD_
#ifdef ICU_STATIC_DATA
#if defined(ICU_STATIC_DATA) || !defined(HAVE_ICU_BUILTIN)
if (!icu_data_loaded) {
UErrorCode err = U_ZERO_ERROR;
u_init(&err); // Do not check for errors, since we only load part of the data.