Closed Bug 1814862 Opened 2 years ago Closed 2 years ago

Build ICU with UCONFIG_NO_BREAK_ITERATION

Categories

(Core :: Internationalization, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

AFAICT, we don't use ICU4C break iteration directly. Indirectly, we depend on it via the ICU4C formatters' capability to do contextual capitalization of the formatted string, but, AFAICT, contextual capitalization isn't actually reached via ECMA-402. (Am I right?)

Building with UCONFIG_NO_BREAK_ITERATION saves 112 KB in libxul size on aarch64 Android and 123 KB on x86_64 Linux. I expect similar numbers for other targets.

Unlike the other formatters, the relative datetime formatter doesn't deal UCONFIG_NO_BREAK_ITERATION gracefully, but it's an easy thing to patch, and a bug that should be fixed in the upstream ICU4C anyway.

Assignee: nobody → hsivonen
Status: NEW → ASSIGNED
Blocks: 1815871

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:hsivonen, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.

Flags: needinfo?(hsivonen)
Flags: needinfo?(andrebargull)
Flags: needinfo?(andrebargull)
Blocks: icu4x

(In reply to Release mgmt bot [:suhaib / :marco/ :calixte] from comment #4)

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:hsivonen, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.

The patch here is r+'ed as accepting the upstream patch once it lands. The upstream PR is https://github.com/unicode-org/icu/pull/2303 . If that lands while I'm away from Bugzilla, I'm OK with someone else taking the upstream patch to m-c.

Flags: needinfo?(hsivonen)
Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/198c66cc18eb Build ICU with UCONFIG_NO_BREAK_ITERATION r=anba
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
Depends on: 1855981
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: