Closed Bug 1719735 Opened 3 years ago Closed 3 years ago

Unify DisplayNames in SpiderMonkey

Categories

(Core :: Internationalization, task, P3)

task

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: gregtatum, Assigned: gregtatum)

References

Details

(Whiteboard: [i18n-unification])

Attachments

(4 files, 2 obsolete files)

https://searchfox.org/mozilla-central/source/js/src/builtin/intl/DisplayNames.cpp

Most likely a mozilla::intl::DisplayNames needs to be created.

No longer depends on: 1719732
No longer blocks: 1719733
Assignee: nobody → gtatum

I have a local patch starting this, and I think it's going to have to depend on LanguageTags (Bug 1719746) as there is significant usage of that class here. With the fallbacking behavior, it's hard to negotiate the string usage. I would prefer the unified API just providing the final result and handling language tag canonicalization internally.

I've gone back and forth a bit on the design, and I think it will be simpler to not do it incrementally like I'm trying.

Depends on: 1719746
Blocks: 1719751
Whiteboard: [i18n-unification]

This simplifies the call sites that take Span locale, and ensures null
termination.

This will not build, but will provide a better diff for the changes.

Depends on D131669

Comment on attachment 9251640 [details]
Bug 1719735 - Naively rename intl/locale/DateTimeFormat to AppDateTimeFormat; r?#platform-i18n-reviewers!

Revision D131670 was moved to bug 1715892. Setting attachment 9251640 [details] to obsolete.

Attachment #9251640 - Attachment is obsolete: true
Attachment #9251639 - Attachment is obsolete: true
Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c48f398e301f Have IcuLocale take a null-terminated Span; r=platform-i18n-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/8fcdcdf44b62 Add a UTF-16 span overload for FillBuffer; r=platform-i18n-reviewers,dminor

I'm only landing the first pieces of approved patches which Bug 1715892 is using. I still need review on the rest of the patch stack.

Backed out 6 changesets (Bug 1715892, Bug 1719735) for causing bc test failures.
Backout link
Push with failures
Failure Log

Flags: needinfo?(gtatum)
Flags: needinfo?(gtatum)
Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f74c12da7ebd Have IcuLocale take a null-terminated Span; r=platform-i18n-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/a1c8cccb360f Add a UTF-16 span overload for FillBuffer; r=platform-i18n-reviewers,dminor
Keywords: leave-open

I landed the first part of the patch stack with Bug 1715892 while waiting for the final reviews on the DisplayNames patches.

Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0aba21720cc4 Create a unified DisplayNames API; r=platform-i18n-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/597a8b16df5c Use mozilla::intl::DisplayNames in SpiderMonkey; r=dminor
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Regressions: 1745564
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: