Closed
Bug 966559
Opened 11 years ago
Closed 8 years ago
Internationalization API uses ICU C++ API for NumberingSystem
Categories
(Core :: JavaScript: Internationalization API, defect)
Core
JavaScript: Internationalization API
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: mozillabugs, Unassigned)
References
Details
Attachments
(2 files, 2 obsolete files)
5.68 KB,
patch
|
Details | Diff | Splinter Review | |
58 bytes,
text/x-review-board-request
|
Waldo
:
review+
|
Details |
The implementation of the ECMAScript Internationalization uses the ICU C++ API to obtain information about the default numbering system for a locale. Using the C++ API is unsafe when using an ICU library provided by the operating system:
http://userguide.icu-project.org/design#TOC-ICU-Binary-Compatibility:-Using-ICU-as-an-Operating-System-Level-Library
The C++ API was used here because there was no equivalent C API at the time:
http://bugs.icu-project.org/trac/ticket/10039
The missing C API has since been added in ICU 52.
Reporter | ||
Comment 1•11 years ago
|
||
This patch builds with the Internationalization API enabled or disabled, and passes the intl402 tests if build with the Internationalization API enabled.
However, the new C API in ICU is still marked as draft in the API documentation, so it may be to early to use it in production:
http://icu-project.org/apiref/icu4c/unumsys_8h.html
Reporter | ||
Comment 2•11 years ago
|
||
Now with updated check_spidermonkey_style.py. Try run at
https://tbpl.mozilla.org/?tree=Try&rev=1e768a6157d7
Attachment #8369022 -
Attachment is obsolete: true
Updated•11 years ago
|
Component: JavaScript Engine → JavaScript: Internationalization API
Comment 4•10 years ago
|
||
This patch would be complete, but on b2g where we use the system ICU in some configurations, the system ICU is "50.1+" per build/autoconf/icu.m4. According to this bug, unumsys.h was added in 52.1, so landing this patch as-is would break b2g with system ICU.
Where's that leave this patch? Pocketed, I guess, until system b2g is newer. Or maybe some sort of adjustment can be made based on $ANDROID_VERSION. I dunno. Not important enough to investigate and possibly solve now.
Updated•10 years ago
|
Attachment #8369122 -
Attachment is obsolete: true
Comment 5•8 years ago
|
||
Can we now land it?
Comment hidden (mozreview-request) |
Comment 7•8 years ago
|
||
Dusted off the patch.
Comment 8•8 years ago
|
||
mozreview-review |
Comment on attachment 8806460 [details]
Bug 966559 - Use public C API for NumberingSystem.
https://reviewboard.mozilla.org/r/89888/#review89442
Attachment #8806460 -
Flags: review?(jwalden+bmo) → review+
Pushed by zbraniecki@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c28c8e058e17
Use public C API for NumberingSystem. r=Waldo
Comment 10•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•