-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix runtime-extra-platforms failures related to HybridGlobalization #87913
Conversation
Tagging subscribers to 'os-tvos': @steveisok, @akoeplinger Issue DetailsFix failures on runtime-extra-platforms after merging #86895
|
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -114,12 +114,15 @@ Range GlobalizationNative_IndexOfNative(const uint16_t* localeName, int32_t lNam | |||
const uint16_t* lpSource, int32_t cwSourceLength, int32_t comparisonOptions, int32_t fromBeginning) | |||
{ | |||
assert(cwTargetLength >= 0); | |||
Range result = {-2, 0}; | |||
Range result = {-1, 0}; |
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 do these magic numbers of -1, -2, -3, etc. mean?
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.
Added ErrorCodes
enum to make it clear.
/azp run runtime-ioslike |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -114,12 +121,15 @@ Range GlobalizationNative_IndexOfNative(const uint16_t* localeName, int32_t lNam | |||
const uint16_t* lpSource, int32_t cwSourceLength, int32_t comparisonOptions, int32_t fromBeginning) | |||
{ | |||
assert(cwTargetLength >= 0); | |||
Range result = {-2, 0}; | |||
Range result = {ERROR_INDEX_NOT_FOUND, 0}; |
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.
Shouldn't this be ERROR_COMPARISON_OPTIONS_NOT_FOUND
as previously the value was -2?
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.
Never mind, that was actually the fix in the first place.
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.
LGTM! Thank you!
Just please make sure that all related System.Globalization
failures in runtime-extra-platforms
are resolved before merging.
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
Failures are not related. |
Fix failures on runtime-extra-platforms after merging #86895
Return ERROR_COMPARISON_OPTIONS_NOT_FOUND only when options are not found and ERROR_INDEX_NOT_FOUND when substring is not found.