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
ICU: Update TestNumberFormatter tests to be compatible with ICU62+ and Darwin
- ICU62+ changed how some of the NumberFormatter formats and properties
work. These tests also work differently in the Foundation supported by
macOS Catalina (10.15).
- Update the tests to work correctly when run using DarwinCompatibilityTests
on Catalina.
- Update NumberFormatter to make the tests work correctly on Linux with
ICU65.1
// ICU62+ is stricter about patterns matching attribute settings and setting UNUM_MAX_INTEGER_DIGITS = 42 would result in a pattern of 42x '#' not 1x '#' as is set here.
//Prior to Gala, CFLocaleCreateCopy() always just retained. This caused problems because CFLocaleGetValue(locale, kCFLocaleCalendarKey) would create a calendar, then set its locale to self, leading to a retain cycle
151
148
//Since we're not in that situation here, and this is a frequently used path, we retain as we used to
0 commit comments