Skip to content

Update globalization-icu.md to detail differences in string equality and sorting #41661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

daverayment
Copy link
Contributor

@daverayment daverayment commented Jul 5, 2024

Summary

(Part of a documentation fix for CompareOptions API issue #41052 )

An update to detail the differences between NLS and ICU implementations for string equality and sorting:

  • Ligatures are not regarded as equal to their expanded forms under ICU by default (CompareOptions.IgnoreNonSpace must be used to override this). This is because of the different collation strength between NLS and ICU.
  • The default sort order for strings has changed under ICU, effectively removing the previous None functionality and making StringSort the default. The only way to restore previous None ordering is to switch back to NLS.

Internal previews

📄 File 🔗 Preview link
docs/core/extensions/globalization-icu.md .NET globalization and ICU

Added details about the differences between NLS and ICU for string sorting and comparison, mentioning the relevant CompareOptions values.
@daverayment daverayment requested a review from IEvangelist as a code owner July 5, 2024 14:36
@dotnet-bot dotnet-bot added this to the July 2024 milestone Jul 5, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Jul 5, 2024
@IEvangelist IEvangelist enabled auto-merge (squash) August 1, 2024 17:08
@IEvangelist IEvangelist merged commit e0729e2 into dotnet:main Aug 1, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants