Skip to content

Update to ICU4X's new Calendar::from_fields#582

Merged
Manishearth merged 10 commits intoboa-dev:mainfrom
Manishearth:calendar-from-fields
Sep 26, 2025
Merged

Update to ICU4X's new Calendar::from_fields#582
Manishearth merged 10 commits intoboa-dev:mainfrom
Manishearth:calendar-from-fields

Conversation

@Manishearth
Copy link
Copy Markdown
Contributor

@Manishearth Manishearth commented Sep 20, 2025

This removes most of the ResolveCalendarFields code. I kept some around as ResolvedIsoFields since the ISO code is separately specced and we should not rely on ICU4X for that.

@Manishearth
Copy link
Copy Markdown
Contributor Author

Test failure is unicode-org/icu4x#6966

@Manishearth Manishearth force-pushed the calendar-from-fields branch 4 times, most recently from 931fb9e to 0982363 Compare September 20, 2025 00:46
@Manishearth Manishearth requested a review from nekevss September 21, 2025 05:51
@Manishearth Manishearth marked this pull request as ready for review September 21, 2025 15:43
@Manishearth
Copy link
Copy Markdown
Contributor Author

Should not be merged until after 0.1.0

@Manishearth Manishearth force-pushed the calendar-from-fields branch 3 times, most recently from 71d56b8 to 22db47b Compare September 21, 2025 18:46
@Manishearth
Copy link
Copy Markdown
Contributor Author

Manishearth commented Sep 21, 2025

This passes built-ins/Temporal/ and intl402/Temporal with icu_calendar at 73723dc8973974b0c156dd04e807c3eadaf4cd5c and temporal_rs at 63fe650, with additional new passing tests and no new failing tests.

So there is no regression with this. Some tests I expected to get fixed have not yet been fixed.

@Manishearth
Copy link
Copy Markdown
Contributor Author

Manishearth commented Sep 22, 2025

I think with unicode-org/icu4x#6969 all the tests that I expect to pass now pass.

Remaining failures are due to arithmetic or a couple other minor known issues (like the duration float rounding issue)

Copy link
Copy Markdown
Member

@nekevss nekevss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Actually glad to see a good path forward for the era data and resolution logic.

@Manishearth Manishearth merged commit 289eb1b into boa-dev:main Sep 26, 2025
8 checks passed
@Manishearth Manishearth deleted the calendar-from-fields branch September 26, 2025 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants