gecko-dev/config
André Bargull 3d58656e00 Bug 1693575 - Part 3: Implement support for "calendar" option. r=tcampbell
This last part to support "calendar" requires a bit more code.

`GetCalendarDisplayName()` performs the following steps:
1. Validate the input matches the `type` nonterminal, per
   CanonicalCodeForDisplayNames, step 4.a.
2. Then convert it to lower case, because ICU expects lower case names and it
   needs to be in lower case for `LanguageTag::replaceUnicodeExtensionType()`.
3. Replace calendar name aliases with the preferred name, e.g. use "ethioaa"
   instead of "ethiopic-amete-alem".
4. Check the input isn't too large, just in case ICU somehow doesn't properly
   handle large string inputs.
5. Retrieve the old-style value of the calendar name, for example "gregorian"
   for the calendar name "gregory".
6. And finally call `uldn_keyValueDisplayName` to search for the localised name.

Our ICU data file doesn't yet include calendar names. To include calendar names
we need to enable them in "data_filter.json", rebuild the ICU data file, and
then reapply the update for tzdata 2021a. (Reapplying the tzdata changed
"intl/tzdata/GIT-INFO", but otherwise didn't change any time zone files.)

Adding the calendar names to the ICU data file results in a slight increase of
the overall data file size (79,184 bytes).

The existing "calendar.js" test file was renamed to "month-calendar.js", so
the test file for the new "calendar" type can be named "calendar.js".

Differential Revision: https://phabricator.services.mozilla.com/D116008
2021-06-01 07:45:44 +00:00
..
external Bug 1693575 - Part 3: Implement support for "calendar" option. r=tcampbell 2021-06-01 07:45:44 +00:00
faster Bug 1701269 - Remove mobile/android/base. r=nalexander,flod,owlish 2021-05-20 22:03:03 +00:00
makefiles Bug 1712947 - Don't pass neon flags to rustc when using thumbv7neon targets. r=firefox-build-system-reviewers,mhentges 2021-05-27 21:36:34 +00:00
mozunit
tests
AB_rCD.mk
autoconf-js.mk.in
autoconf.mk.in
baseconfig.mk
check_js_msg_encoding.py
check_js_opcode.py
check_macroassembler_style.py
check_source_count.py
check_spidermonkey_style.py Bug 1713212 - Add a check to prevent mozilla/Unused.h from being included r=mgaudet 2021-05-28 21:41:33 +00:00
check_vanilla_allocations.py Bug 1701695 - Add NumberFormat::TryCreate; r=tcampbell 2021-05-12 17:22:51 +00:00
config.mk Bug 1707030 - Return to having NSDISTMODE=copy impact INSTALL. r=firefox-build-system-reviewers,mhentges 2021-05-04 03:12:49 +00:00
create_rc.py
create_res.py
createprecomplete.py
emptyvars-js.mk.in
emptyvars.mk.in
gcc_hidden.h
gcc-stl-wrapper.template.h
install.bat
make-stl-wrappers.py
make-system-wrappers.py
make-windows-h-wrapper.py
Makefile.in
milestone.txt Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-05-31 17:00:15 +00:00
moz.build
MozZipFile.py
msvc-stl-wrapper.template.h
nsinstall.c
nsinstall.py
pathsub.c
pathsub.h
printconfigsetting.py
printprereleasesuffix.py
rebuild_check.py
recurse.mk Bug 1701269 - Remove mobile/android/base. r=nalexander,flod,owlish 2021-05-20 22:03:03 +00:00
rules.mk
run_spidermonkey_checks.py
run-and-prefix.py
static-checking-config.mk
stl-headers.mozbuild
system-headers.mozbuild
windows-h-constant.decls.h
windows-h-unicode.decls.h
windows-h-wrapper.template.h