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
✨Fallback to invariant culture if cultures are not found (#1266)
Fixes#1238
Applications crashed when running on Linux or Raspberry PI systems if
.NET cultures were not installed.
Specifically, `UnitAbbreviationsCache.Default` threw an exception trying
to instantiate the fallback `CultureInfo` with `en-US`.
### Changes
- Change fallback culture to `InvariantCulture`
- Add `CultureHelper.GetCultureOrInvariant()` to handle
`CultureNotFoundException`
- Change `UnitInfo` to map invariant culture to `en-US` localization
/// <returns><see cref="CultureInfo.CurrentCulture"/> if given <c>null</c>, or the culture with the given name if the culture is available, otherwise <see cref="CultureInfo.InvariantCulture"/>.</returns>
0 commit comments