-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[API Proposal]: System.Globalization.CompareOptions.UseNLS #99646
Comments
Tagging subscribers to this area: @dotnet/area-system-globalization |
I don't think we should be encouraging users to rely on NLS in the long term, especially for new apps. NLS is Windows-specific while ICU is standard and cross-platform. |
Not encourage but it is sometimes needed to use NLS. |
|
See: runtime/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLString.cs Lines 684 to 705 in b181ed5
runtime/src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLString.cs Lines 401 to 403 in b181ed5
I guess it could be a new internal API, although I don't see the harm of exposing this flag since it would be off by default. |
That probably won't happen since it'd make |
Globalization tables are moving target. If SqlString assumes that the globalization tables are fixed, it sounds like a design flaw in SqlString that should be fixed in SqlString. |
Any updates on this? Can we loop in someone that owns SqlString, or knows more about it? |
The main issue is tracked by #99507 |
Background and motivation
Using NLS instead of ICU can currently only be configured with a global flag.
See https://learn.microsoft.com/en-us/dotnet/core/extensions/globalization-icu#use-nls-instead-of-icu
This new API would allow the use of NLS on a per API call basis.
API Proposal
Add a new flag System.Globalization.CompareOptions.UseNLS
API Usage
Alternative Designs
I can't think of any
Risks
I can't think of any
The text was updated successfully, but these errors were encountered: