mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
39f07f7d01
Add various workarounds for ICU-20548 to improve the output of the "timeZoneName" option when formatting date-time ranges. Changes to "intl/icu/source/i18n/dtitvinf.cpp": The existing ICU code was already changing `LOW_Z` to `LOW_V` when searching for the best-fit pattern, but it was missing support for `CAP_O`. (The other time zone name skeleton characters aren't currently supported in ECMA-402, so I didn't handle them here.) Changes to "intl/icu/source/i18n/dtitvfmt.cpp": In `DateIntervalFormat::getDateTimeSkeleton()`, handle `CAP_O` similar to the existing code for `LOW_Z` and `LOW_V`. And also keep the original number of skeleton characters in `normalizedTimeSkeleton`. In `DateIntervalFormat::adjustFieldWidth()`, copy the field width information for `LOW_V` into `LOW_Z` resp. `CAP_O` because `LOW_V` is replaced in the resolved pattern with `LOW_Z` resp. `CAP_O`. Differential Revision: https://phabricator.services.mozilla.com/D189743 |
||
---|---|---|
.. | ||
benchmarks | ||
build | ||
components | ||
docs | ||
encoding_glue | ||
gtest | ||
hyphenation | ||
icu | ||
icu_testdata | ||
icu-patches | ||
l10n | ||
locale | ||
locales | ||
lwbrk | ||
strres | ||
tzdata | ||
uconv | ||
unicharutil | ||
Encoding.h | ||
EncodingDetector.h | ||
icu_sources_data.py | ||
moz.build | ||
update-icu4x.sh | ||
update-icu.sh | ||
update-tzdata.sh |