-
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
String.IndexOf("\0") Zero #54951
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Hello, .NET 5 started using the ICU globalization libraries on Windows 10 1903 or newer for consistency with other operating systems. This change has unavoidably brought some breaking behavioral changes like this one. In your case however, if you are simply looking for null characters in a string, an ordinal search would be ideal for you. var e = a.IndexOf("\0", StringComparison.Ordinal); |
Tagging subscribers to this area: @dotnet/area-system-runtime Issue DetailsDescriptionBefore dotnet5, below code d and e are both 9. But in dotnet5, e is 0. I think it is a bug.
Configuration
Regression?Other information
|
Tagging subscribers to this area: @tarekgh, @safern Issue DetailsDescriptionBefore dotnet5, below code d and e are both 9. But in dotnet5, e is 0. I think it is a bug.
Configuration
Regression?Other information
|
Description
Before dotnet5, below code d and e are both 9. But in dotnet5, e is 0. I think it is a bug.
Configuration
Regression?
Other information
The text was updated successfully, but these errors were encountered: