You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CalendarGregorian search functions may loop indefinitely when reaching the capped date (swiftlang#423)
* CalendarGregorian search functions may loop indefinitely when reaching the capped date
We are capping the input `Date` to the internal upper bound in various internal functions. This caused the incremental search functions to loop indefinitely because the search results are always the same since the effective input never changes.
Remove the capping from internal functions entirely. The capping was added to improving performance when calling into ICU. We should instead move the capping up to Calendar.swift, the call site to reach consistent behavior, but not inside the implementation.
Also fix miscellaneous other problems found in testing
Resolves 122946218
* enable compatibility tests for CI to run
* Address review feedback
* Remove incorrect assumption -- we should not store locale's prefs as the calendar's custom first day because it may be copied accidentally
0 commit comments