-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Open
Copy link
Description
runtime/src/libraries/System.Private.CoreLib/src/System/Globalization/CompareInfo.cs
Lines 1599 to 1604 in b61c8fc
| #if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS | |
| if (GlobalizationMode.Hybrid) | |
| { | |
| throw new PlatformNotSupportedException(GetPNSEText("SortVersion")); | |
| } | |
| #endif |
CompareInfo.Version currently throws an exception on iOS-like platforms. We need to have a workaround to return Collator version used for string comparisons by Apple APIs instead of throwing an exception.
- Investigate how to get version of the
SortKeyretrieved byint32_t GlobalizationNative_GetSortKeyNative(const uint16_t* localeName, int32_t lNameLength, const UChar* lpStr, int32_t cwStrLength, - Should have similar characteristics as
ucol_getVersionucol_getVersion(pColl, (uint8_t *) &result); - Add tests cases https://github.com/dotnet/runtime/blob/main/src/libraries/System.Runtime/tests/System.Globalization.Tests/CompareInfo/CompareInfoTests.SortKey.cs
- Re-enable disabled/modified tests conditioned by
HybridGlobalization
- Re-enable disabled/modified tests conditioned by
Reactions are currently unavailable