Upgrade to ICU4X 2.1.1
Categories
(Core :: Internationalization, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: hsivonen, Assigned: m_kato)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 1 obsolete file)
ICU4X 2.1.1 is now on crates.io. We should update to it as a general matter of keeping dependencies up-to-date, but, moreover, there are calendar changes that are likely relevant to Temporal and the performance of CodePointTrie is better, which improves multiple components.
| Assignee | ||
Comment 1•9 months ago
|
||
- ICU4X 2.1.1 requires Rust 1.83, but Gecko's minimal requirement is still 1.82. Bug 1986626 is filed to update minimal version, but TASN/ASAN sitll use Rust 1.81 due to library issue, so it isn't easy to update to 1.83+.
- Some calendar data are changed, so we need to adjust SpiderMonkey's tests.
https://treeherder.mozilla.org/jobs?repo=try&revision=f7c23d86ea08b8c8389dc654c1ffc1d8cce88137
| Reporter | ||
Comment 2•9 months ago
|
||
anba, what's going on with the Chinese associated ISO year in the tests?
Comment 3•9 months ago
|
||
The code in https://searchfox.org/firefox-main/source/intl/components/src/calendar needs to be updated to handle the changed definitions of era years for Chinese/Dangi calendars. I'll attach a WIP patch for testing.
Comment 4•9 months ago
|
||
Drive-by change:
- Remove unused
CalendarDate.
Updated•8 months ago
|
| Assignee | ||
Comment 5•7 months ago
|
||
Also, I guess that https://searchfox.org/firefox-main/rev/e61d59b5c9a651fd7bf28043f87c0dc669833496/js/src/builtin/temporal/Calendar.cpp#1545-1549 is unnecessary.
| Assignee | ||
Comment 6•7 months ago
|
||
| Assignee | ||
Comment 7•7 months ago
|
||
icuexport filename rule is changed, so we should add an argument for it.
| Assignee | ||
Comment 8•7 months ago
|
||
| Assignee | ||
Comment 9•7 months ago
|
||
| Assignee | ||
Comment 10•7 months ago
|
||
ICU4X 2.1's FFI are
- diplomat's namespace is changed
- Remove a workarounds of calendar data to pass WPTs such as
test262/intl402/Temporal/*/prototype/year/epoch-year.js.
| Assignee | ||
Comment 11•7 months ago
|
||
I think we need to update some js tests to reflect changes in ICU4X 2.1.
Also, grapheme cluster is updated to Unicode 17.0, so Indic's breaking
behavior is changed.
Comment 12•6 months ago
|
||
Comment 13•6 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7208b73a172b
https://hg.mozilla.org/mozilla-central/rev/fdd2552fc5c2
https://hg.mozilla.org/mozilla-central/rev/47e5e4c27c47
https://hg.mozilla.org/mozilla-central/rev/b0f80cca985f
https://hg.mozilla.org/mozilla-central/rev/9ee11e18a0a4
Updated•5 months ago
|
Comment 14•4 months ago
|
||
This seems to have introduced a duplication on embedded-io crate dependency: https://searchfox.org/firefox-main/rev/07e27bfce5acf193bdb89c7ba2aa73451a3e43b4/intl/icu_capi/Cargo.lock#731-732 we now have 0.4.0 and 0.6.1 ?
Description
•