You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use the app container's icudt.dat file in app extensions #17877
@akoeplinger were you looking at hardcoding the path to the icudt.dt file for NativeAOT? Once we fix this issue, the icudt.dt file might not be inside the app bundle anymore for app extensions (we'll still know the path to the icudt.dat file, relative to the root of the app bundle, at build time).
Activity
rolfbjarne commentedon Mar 22, 2023
@akoeplinger were you looking at hardcoding the path to the icudt.dt file for NativeAOT? Once we fix this issue, the icudt.dt file might not be inside the app bundle anymore for app extensions (we'll still know the path to the icudt.dat file, relative to the root of the app bundle, at build time).
akoeplinger commentedon Mar 22, 2023
Right now we use this fallback path if the
ICU_DAT_FILE_PATHAppContext key isn't set:https://github.com/dotnet/runtime/blob/e56db76481726cc451b8fcf499500f9f3218de63/src/native/libs/System.Globalization.Native/pal_locale.m#L32
I think we could easily modify this to always pass in a path via that key and just assume it is relative to the bundle root.
Support relative path for ICU_DAT_FILE_PATH on iOS/tvOS/Catalyst
Support relative path for ICU_DAT_FILE_PATH on iOS/tvOS/Catalyst (#87813
akoeplinger commentedon Jun 22, 2023
The runtime change to support a relative ICU_DAT_FILE_PATH was merged and will show up in 8.0-preview6
akoeplinger commentedon Jul 22, 2024
.NET 9 uses "hybrid globalization" which doesn't rely on bundling ICU with the app anymore so this should no longer be needed going forward.
rolfbjarne commentedon Sep 26, 2024
Closing as per last comment.