[iOS] Using CompareOptions.IgnoreSymbols throws an exception in .net 9 #115304
Labels
area-System.Globalization
os-ios
Apple iOS
untriaged
New issue has not been triaged by the area owner
Description
Attempting to call
CultureInfo.InvariantCulture.CompareInfo.IndexOf
withCompareOptions.IgnoreSymbols
throws aPlatformNotSupportedException
(see log output below for full message) on iOS but works fine for Android. This used to work fine in .net 8 MAUI.CultureInfo.InvariantCulture.CompareInfo.IndexOf("string 1", "strng 2", CompareOptions.IgnoreSymbols) >= 0;
The exception talks about disabling
HybridGlobalization
but I cannot find any documentation about this for MAUI.Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
9.0.60 SR6
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.100 SR10
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: