guix/gnu/packages/patches/icu4c-dayperiod-fractional-seconds.patch
Maxim Cournoyer d4097d3563
gnu: icu4c-77: Apply Mozilla patches.
Suggested by Deltafire.

* gnu/packages/patches/icu4c-icu-22132-fix-vtimezone.patch: Rename to...
* gnu/packages/patches/icu4c-22132-standardize-vtzone-output.patch: ... this.
* gnu/packages/patches/icu4c-20548-dateinterval-timezone.patch: New file.
* gnu/packages/patches/icu4c-dayperiod-fractional-seconds.patch: New file.
* gnu/packages/patches/icu4c-23069-rosh-hashanah-postponement.patch
* gnu/packages/patches/icu4c-dtitvfmt-adopt-calendar.patch
* gnu/packages/patches/icu4c-wasi-workaround.patch: New files.
* gnu/packages/patches/icu4c-double-conversion.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/icu4c.scm (icu4c-77) [source]: Apply patches.

Fixes: #3166
Change-Id: I9ce64a81f763e5c9ff2940a2d844a0b44d2800a8
2026-01-06 09:14:58 +09:00

25 lines
1.4 KiB
Diff

Retrieved from: <https://raw.githubusercontent.com/mozilla-firefox/firefox/refs/heads/main/intl/icu-patches/bug-1636984-append-item-dayperiod-fractional-seconds.diff>
# Add <appendItem> entries for "DayPeriod" and "FractionalSeconds" to avoid the
# "├ ┤" parentheses from ICU and instead use the normal "( )" parentheses.
#
# CLDR bug: https://unicode-org.atlassian.net/browse/CLDR-13184
diff --git a/source/i18n/dtptngen.cpp b/source/i18n/dtptngen.cpp
--- a/source/i18n/dtptngen.cpp
+++ b/source/i18n/dtptngen.cpp
@@ -259,12 +259,12 @@ static const dtTypeElem dtTypes[] = {
{0, UDATPG_FIELD_COUNT, 0, 0, 0} , // last row of dtTypes[]
};
static const char* const CLDR_FIELD_APPEND[] = {
"Era", "Year", "Quarter", "Month", "Week", "*", "Day-Of-Week",
- "*", "*", "Day", "*", // The UDATPG_x_FIELD constants and these fields have a different order than in ICU4J
- "Hour", "Minute", "Second", "*", "Timezone"
+ "*", "*", "Day", "DayPeriod", // The UDATPG_x_FIELD constants and these fields have a different order than in ICU4J
+ "Hour", "Minute", "Second", "FractionalSecond", "Timezone"
};
static const char* const CLDR_FIELD_NAME[UDATPG_FIELD_COUNT] = {
"era", "year", "quarter", "month", "week", "weekOfMonth", "weekday",
"dayOfYear", "weekdayOfMonth", "day", "dayperiod", // The UDATPG_x_FIELD constants and these fields have a different order than in ICU4J