[iOS] Fix return code when failing to load ICU data (#66055)
authorSteve Pfister <steveisok@users.noreply.github.com>
Thu, 3 Mar 2022 14:05:27 +0000 (09:05 -0500)
committerGitHub <noreply@github.com>
Thu, 3 Mar 2022 14:05:27 +0000 (09:05 -0500)
commit27c2dc6193970e2ca177d6872656a3db085e2cd8
treed093452ab19533716b301d5effc5a1cc7eb9da13
parentb8f1a0695198dfae45e2d0e0535dbfdd37f93ddc
[iOS] Fix return code when failing to load ICU data (#66055)

`GlobalizationNative_LoadICUData` was returning -1 when loading failed instead of 0. The result would be a misleading exception as opposed to failing the application fast.

Fixes https://github.com/dotnet/runtime/issues/66030
src/native/libs/System.Globalization.Native/pal_icushim_static.c