-
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
[release/5.0-rc2] Fix the globalization test. #42226
[release/5.0-rc2] Fix the globalization test. #42226
Conversation
The failure is because Windows regresion. The change here is to avoid having the test fail because of that. The regression is tracked by Windows team to fix it.
OK to merge this test-only stability change as "tell mode" |
private static extern int CompareStringEx(string lpLocaleName, uint dwCmpFlags, string lpString1, int cchCount1, string lpString2, int cchCount2, IntPtr lpVersionInformation, IntPtr lpReserved, int lParam); | ||
private const int NORM_LINGUISTIC_CASING = 0x08000000; // use linguistic rules for casing | ||
|
||
private static bool WindowsVersionHasTheCompareStringRegression => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does "the compare string regression" mean? Will we understand which regression it's referring to in a month or a year?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code is clear I guess. comparing 2 specific strings returning wrong results. I expect we'll remove this code when Windows fix the regression too. I added this code as I don't know specific versions will have the regression and when it is going to be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stephentoub please let me know if you have any concern before I merge this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth a comment, but otherwise, ok.
Backport of #42212 to release/5.0-rc2
/cc @tarekgh
Customer Impact
This is a test only change. No product change. So, there is no real customer impact more than developers who build and run our tests against the release branch.
The change here is avoiding the test failure caused by a Windows regression in the new Windows insider builds.
Testing
Running the failed test successfully with no failures.
Risk
None as this is a test change.