Greg Tatum
e61871c813
Bug 1719553 - Use unified Intl API in OSPreferences_gtk.cpp; r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D132038
2021-11-29 20:43:07 +00:00
Nika Layzell
26555d958a
Bug 1734739
- Part 1: Stop requiring otherpid for ShareTo, r=handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D128218
2021-11-24 17:56:00 +00:00
Dan Minor
e12f42285c
Bug 1733659 - Clean up naming style in Locale; r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D131511
2021-11-23 12:36:41 +00:00
Zibi Braniecki
07f49c8f68
Bug 1742106 - Add basic C++ Localization gtests. r=nordzilla,eemeli,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D131615
2021-11-22 21:57:34 +00:00
Sandor Molnar
2594d2ac61
Backed out 2 changesets (bug 1733659) for causing build bustages. CLOSED TREE
...
Backed out changeset 9e23aa79fda9 (bug 1733659)
Backed out changeset e316768591c0 (bug 1733659)
2021-11-22 20:51:20 +02:00
Dan Minor
bcbfdb6d73
Bug 1733659 - Clean up naming style in Locale; r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D131511
2021-11-22 18:32:41 +00:00
Yoshi Cheng-Hao Huang
5b9420c13f
Bug 1719545 - Part 1: Add Script::GetExtensions. r=anba,platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D130975
2021-11-19 13:20:22 +00:00
Dan Minor
2da248e720
Bug 1728121 - Use std::is_same_v in unified intl; r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D131262
2021-11-17 15:05:52 +00:00
André Bargull
a62c197b64
Bug 1741222: Add include guards to MeasureUnitGenerated.h files. r=allstarschh
...
Add include guard and place the definitions into the correct namespace.
The name had to be changed to `SimpleMeasureUnit` to avoid a conflict with the
existing `mozilla::intl::MeasureUnit` class.
Depends on D131244
Differential Revision: https://phabricator.services.mozilla.com/D131245
2021-11-17 08:55:08 +00:00
Zibi Braniecki
8d28718532
Bug 1563128 - Handle broken l10n-args gracefully. r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D131251
2021-11-16 18:28:26 +00:00
André Bargull
2b25e46cab
Bug 1738422 - Part 13: Remove no longer needed ICU workarounds and conditional code. r=platform-i18n-reviewers,dminor
...
Number range formatting is stable in ICU 70, which means we can remove
`MOZ_INTL_HAS_NUMBER_RANGE_FORMAT` and `MOZ_INTL_PLURAL_RULES_HAS_SELECT_RANGE`.
The following bugs have been fixed in ICU 70, so we can remove the workarounds
for them:
- https://unicode-org.atlassian.net/browse/ICU-21109
- https://unicode-org.atlassian.net/browse/ICU-21622
- https://unicode-org.atlassian.net/browse/ICU-21641
- https://unicode-org.atlassian.net/browse/ICU-21683
- https://unicode-org.atlassian.net/browse/ICU-21685
- https://unicode-org.atlassian.net/browse/ICU-21686
Depends on D129934
Differential Revision: https://phabricator.services.mozilla.com/D129935
2021-11-16 17:02:59 +00:00
André Bargull
ff9c1aa3c8
Bug 1738422 - Part 11: Update expected test results. r=platform-i18n-reviewers,dminor
...
Depends on D129932
Differential Revision: https://phabricator.services.mozilla.com/D129933
2021-11-16 17:02:58 +00:00
André Bargull
03c3a9ff0e
Bug 1738422 - Part 10: Remove approximately sign detection code. r=platform-i18n-reviewers,dminor
...
This is no longer necessary after part 9.
Depends on D129931
Differential Revision: https://phabricator.services.mozilla.com/D129932
2021-11-16 17:02:58 +00:00
André Bargull
2e3c881a95
Bug 1738422 - Part 9: Add a separate UNumberFormatFields constant for the approximately sign. r=platform-i18n-reviewers,dminor
...
Our previous heuristic no longer works, so we now have to patch ICU directly to
support detecting the approximately sign.
Depends on D129930
Differential Revision: https://phabricator.services.mozilla.com/D129931
2021-11-16 17:02:57 +00:00
André Bargull
1c1c5bd5f9
Bug 1738422 - Part 5: Update language tag mappings. r=platform-i18n-reviewers,dminor
...
Update language tag mappings by running `./make_intl_data.py langtags core.zip`.
The direct invocation `./make_intl_data.py langtags` doesn't work, because
"https://unicode.org/Public/cldr/40/core.zip " was incorrectly generated and
contains another "core.zip" file within "core.zip".
Depends on D129926
Differential Revision: https://phabricator.services.mozilla.com/D129927
2021-11-16 17:02:55 +00:00
André Bargull
5e425546cd
Bug 1738422 - Part 4: Update Gecko to Unicode 14. r=platform-i18n-reviewers,dminor
...
Update to Unicode 14 by running `genUnicodePropertyData.pl` and `genSpecialCasingData.pl`.
Depends on D129925
Differential Revision: https://phabricator.services.mozilla.com/D129926
2021-11-16 17:02:54 +00:00
André Bargull
d814742408
Bug 1738422 - Part 2: Update in-tree ICU to release 70.1. r=platform-i18n-reviewers,dminor
...
Update to ICU 70.1 by running "update-icu.sh" with "maint/maint-70" as the target.
Differential Revision: https://phabricator.services.mozilla.com/D129924
2021-11-16 17:02:38 +00:00
André Bargull
0b5e68fd05
Bug 1738422 - Part 1: Update or remove ICU patches. r=platform-i18n-reviewers,dminor
...
Remove the patches for bug 1636984, bug 1648137, and bug 1714933 because the
underlying bugs were fixed in ICU 70 resp. the local patches were backports from
the ICU development branch.
And update the local patches for Sorbian to apply cleanly on ICU 70.
Differential Revision: https://phabricator.services.mozilla.com/D129921
2021-11-16 17:02:38 +00:00
Greg Tatum
ec908112f4
Bug 1738057 - Split out BidiEmbeddingLevel into its own file; r=platform-i18n-reviewers,dminor
...
This should speed up re-compile times, as mozilla/intl/Bidi.h will only
be included in a few places.
Differential Revision: https://phabricator.services.mozilla.com/D129662
2021-11-16 15:11:58 +00:00
Greg Tatum
0f0b78cc1d
Bug 1736907 - Add a build flag to experimentally build with ICU4X static data; r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D129080
2021-11-16 15:09:09 +00:00
Andi-Bogdan Postelnicu
d6be8bb00a
Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,firefox-build-system-reviewers,mhentges
...
Updated with rustfmt 1.4.38-nightly (936238a9 2021-11-11)
Depends on D129119
Differential Revision: https://phabricator.services.mozilla.com/D129120
2021-11-16 08:07:30 +00:00
Andi-Bogdan Postelnicu
1faa3d40cf
Bug 1519636 - Reformat recent changes to the Google coding style. r=firefox-build-system-reviewers,mhentges,sylvestre
...
Reformat with clang-format version 12.0.1 (taskcluster-FYV2l5wGTseBAhiqf8cxfQ)
Differential Revision: https://phabricator.services.mozilla.com/D131114
2021-11-16 08:07:29 +00:00
Sylvestre Ledru
1df999712f
Bug 1714788 - doc: do not provide the language if the code isn't valid r=firefox-source-docs-reviewers,championshuttler DONTBUILD
...
Otherwise, the warning is displayed:
```
WARNING: Could not lex literal_block as "json". Highlighting skipped.
```
Depends on D131092
Differential Revision: https://phabricator.services.mozilla.com/D131093
2021-11-16 07:59:48 +00:00
Ting-Yu Lin
2c88da9b0e
Bug 1740831 Part 2 - Replace LineBreaker::Strictness with LineBreakRule. r=m_kato
...
LineBreaker::Strictness is just an alias of LineBreakRule in Segmenter.h. This
is to reduce the dependency of the legacy LineBreaker.
Differential Revision: https://phabricator.services.mozilla.com/D131026
2021-11-15 17:20:36 +00:00
Ting-Yu Lin
638eb14439
Bug 1740831 Part 1 - Replace LineBreaker::WordBreak with WordBreakRule. r=m_kato
...
LineBreaker::WordBreak is just an alias of WordBreakRule in Segmenter.h. This is
to reduce the dependency of the legacy LineBreaker.
Differential Revision: https://phabricator.services.mozilla.com/D131025
2021-11-15 17:20:35 +00:00
Zibi Braniecki
1aa25b7d0b
Bug 1739143 - Capture DOM L10n initial translation and mutations rejections and report to console. r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D130797
2021-11-10 23:40:43 +00:00
Butkovits Atila
7f1436e4bc
Backed out changeset 4f859ea95ec6 (bug 1739143) for causing failures at document_l10n/non-system-principal/browser_resource_uri.js. CLOSED TREE
2021-11-10 02:14:34 +02:00
Zibi Braniecki
d32521c61b
Bug 1739143 - Capture DOM L10n initial translation and mutations rejections and report to console. r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D130797
2021-11-09 23:10:26 +00:00
Nika Layzell
4bf7ce347c
Bug 1732343 - Part 5: Use attached handles for Windows SharedMemory serialization, r=handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D126567
2021-11-09 14:17:33 +00:00
Nika Layzell
d73755617d
Bug 1732343 - Part 2: Migrate all uses of base::FileDescriptor to UniqueFileHandle, r=handyman
...
This is useful for the following parts, as UniqueFileHandle is a cross-platform
type which can also be used to support transferring HANDLEs between processes.
This change requires fairly sweeping changes to existing callsites, which
previously did not require owning access to the handle types when transferring.
For the most part these changes were straightforward, but manual.
Differential Revision: https://phabricator.services.mozilla.com/D126564
2021-11-09 14:17:32 +00:00
Andreas Farre
4cf077692f
Bug 1733963 - Part 2: Add BitSet tests. r=glandium
...
Depends on D127447
Differential Revision: https://phabricator.services.mozilla.com/D127448
2021-11-09 12:34:51 +00:00
Brad Werth
09431f9208
Bug 1738107 Part 2: Remove deprecated std::iterator from ICU4CGlue. r=gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D130314
2021-11-09 05:02:25 +00:00
Ting-Yu Lin
4a00f61720
Bug 1722484 Part 1 - Introduce mozilla::intl::Segmenter and break iterators. r=m_kato,dminor
...
intl/component is already linked with Javascript. However, segmenter is still
backed by lwbrk, which highly couples with xpcom APIs, so we cannnot add it
under intl/component until we integrate ICU4X segmenter. I added it under
intl/lwbrk for now.
The enum `WordBreakRule` and `LineBreakRule` are named after their counterpart
in ICU4X.
https://unicode-org.github.io/icu4x-docs/doc/icu_segmenter/index.html#enums
Differential Revision: https://phabricator.services.mozilla.com/D129193
2021-11-09 01:14:14 +00:00
Iulian Moraru
36283a9a3b
Backed out 2 changesets (bug 1722484) for causing multiple build bustages. CLOSED TREE
...
Backed out changeset bef547b588ff (bug 1722484)
Backed out changeset e676fa1a0cb7 (bug 1722484)
2021-11-09 01:42:20 +02:00
Ting-Yu Lin
b2dc37c08a
Bug 1722484 Part 1 - Introduce mozilla::intl::Segmenter and break iterators. r=m_kato,dminor
...
intl/component is already linked with Javascript. However, segmenter is still
backed by lwbrk, which highly couples with xpcom APIs, so we cannnot add it
under intl/component until we integrate ICU4X segmenter. I added it under
intl/lwbrk for now.
The enum `WordBreakRule` and `LineBreakRule` are named after their counterpart
in ICU4X.
https://unicode-org.github.io/icu4x-docs/doc/icu_segmenter/index.html#enums
Differential Revision: https://phabricator.services.mozilla.com/D129193
2021-11-08 22:24:18 +00:00
Marian-Vasile Laza
7241c1f9e9
Backed out 3 changesets (bug 1733963) for causing build bustages on TestEnumSet.cpp. CLOSED TREE
...
Backed out changeset 83b804a449c2 (bug 1733963)
Backed out changeset 434e10a0c39a (bug 1733963)
Backed out changeset d7d88b948f71 (bug 1733963)
2021-11-08 19:42:46 +02:00
Andreas Farre
e7ee97fb29
Bug 1733963 - Part 2: Add BitSet tests. r=glandium
...
Depends on D127447
Differential Revision: https://phabricator.services.mozilla.com/D127448
2021-11-08 16:01:26 +00:00
ssummar
0992acc367
Bug 1603127 - Replaced mozilla::Tuple with std::tuple and applied structured bindings in mozilla/Encoding.h. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D129920
2021-11-08 08:14:00 +00:00
Jonathan Kew
37bb886753
Bug 1737147 - Treat characters with LB=BreakAfter as Breakable in LineBreaker.cpp. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D130477
2021-11-06 19:05:43 +00:00
Narcis Beleuzu
3144ccc409
Backed out changeset 551d3e02d2f7 (bug 1737147) for wr failures on word-break-normal-bo-000.html . CLOSED TREE
2021-11-05 23:44:50 +02:00
Marian-Vasile Laza
fca6bc6241
Backed out 3 changesets (bug 1733963) for causing build bustages on SyncedContext.h. CLOSED TREE
...
Backed out changeset de5c7a16378c (bug 1733963)
Backed out changeset f5f3a27abf60 (bug 1733963)
Backed out changeset cc3a0603f88a (bug 1733963)
2021-11-05 20:54:33 +02:00
Andreas Farre
694649bec3
Bug 1733963 - Part 2: Add BitSet tests. r=glandium
...
Depends on D127447
Differential Revision: https://phabricator.services.mozilla.com/D127448
2021-11-05 17:23:02 +00:00
Jonathan Kew
97209d1f8a
Bug 1737147 - Treat characters with LB=BreakAfter as Breakable in LineBreaker.cpp. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D130477
2021-11-05 16:22:29 +00:00
Cristian Tuns
71486b8924
Backed out changeset 7e8e3747c3f8 (bug 1603127) for causing toolchains build bustages (Bug 1739589). CLOSED TREE
2021-11-05 07:23:45 -04:00
Cristian Tuns
cbd178830f
Backed out 10 changesets (bug 1732343) for causing coverage build bustages (Bug 1739590).
...
Backed out changeset bba94c79f3e1 (bug 1732343)
Backed out changeset d30fa1e1f605 (bug 1732343)
Backed out changeset ed0b4f757c4b (bug 1732343)
Backed out changeset a272da134c34 (bug 1732343)
Backed out changeset ccb259d73843 (bug 1732343)
Backed out changeset a292990b62de (bug 1732343)
Backed out changeset 7d1854782ca8 (bug 1732343)
Backed out changeset 29eaabd9ffb3 (bug 1732343)
Backed out changeset 1aa26657a7a6 (bug 1732343)
Backed out changeset 7a6708dc620a (bug 1732343)
2021-11-05 07:21:04 -04:00
ssummar
508562cc85
Bug 1603127 - Replaced mozilla::Tuple with std::tuple and applied structured bindings in mozilla/Encoding.h. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D129920
2021-11-05 05:33:58 +00:00
Nika Layzell
fc6ef2a44a
Bug 1732343 - Part 5: Use attached handles for Windows SharedMemory serialization, r=handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D126567
2021-11-04 19:20:19 +00:00
Nika Layzell
b8279164db
Bug 1732343 - Part 2: Migrate all uses of base::FileDescriptor to UniqueFileHandle, r=handyman
...
This is useful for the following parts, as UniqueFileHandle is a cross-platform
type which can also be used to support transferring HANDLEs between processes.
This change requires fairly sweeping changes to existing callsites, which
previously did not require owning access to the handle types when transferring.
For the most part these changes were straightforward, but manual.
Differential Revision: https://phabricator.services.mozilla.com/D126564
2021-11-04 19:20:17 +00:00
Dan Minor
2266940c0d
Bug 1736017 - Remove MozLocale; r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D129213
2021-11-04 16:36:05 +00:00
Dan Minor
690f8a34f1
Bug 1736017 - Replace MozLocale with Locale in OSPreferences_win.cpp; r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D129212
2021-11-04 16:36:05 +00:00