Skip to content

Commit

Permalink
Backed out 3 changesets (bug 1792775) for causing build bustages in d…
Browse files Browse the repository at this point in the history
…ateTimeField.js CLOSED TREE

Backed out changeset afc4c848f6cd (bug 1792775)
Backed out changeset 3ad9903f28d8 (bug 1792775)
Backed out changeset 838947448110 (bug 1792775)
  • Loading branch information
nerli1 committed Nov 23, 2022
1 parent 5d2c2a3 commit 4dbf568
Show file tree
Hide file tree
Showing 1,661 changed files with 48,950 additions and 120,497 deletions.
Binary file not shown.
4 changes: 1 addition & 3 deletions config/external/icu/i18n/sources.mozbuild
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ sources = [
'/intl/icu/source/i18n/decContext.cpp',
'/intl/icu/source/i18n/decimfmt.cpp',
'/intl/icu/source/i18n/decNumber.cpp',
'/intl/icu/source/i18n/displayoptions.cpp',
'/intl/icu/source/i18n/double-conversion-bignum-dtoa.cpp',
'/intl/icu/source/i18n/double-conversion-bignum.cpp',
'/intl/icu/source/i18n/double-conversion-cached-powers.cpp',
Expand Down Expand Up @@ -258,7 +257,6 @@ EXPORTS.unicode += [
'/intl/icu/source/i18n/unicode/datefmt.h',
'/intl/icu/source/i18n/unicode/dcfmtsym.h',
'/intl/icu/source/i18n/unicode/decimfmt.h',
'/intl/icu/source/i18n/unicode/displayoptions.h',
'/intl/icu/source/i18n/unicode/dtfmtsym.h',
'/intl/icu/source/i18n/unicode/dtitvfmt.h',
'/intl/icu/source/i18n/unicode/dtitvinf.h',
Expand Down Expand Up @@ -312,7 +310,6 @@ EXPORTS.unicode += [
'/intl/icu/source/i18n/unicode/udat.h',
'/intl/icu/source/i18n/unicode/udateintervalformat.h',
'/intl/icu/source/i18n/unicode/udatpg.h',
'/intl/icu/source/i18n/unicode/udisplayoptions.h',
'/intl/icu/source/i18n/unicode/ufieldpositer.h',
'/intl/icu/source/i18n/unicode/uformattable.h',
'/intl/icu/source/i18n/unicode/uformattedvalue.h',
Expand All @@ -321,6 +318,7 @@ EXPORTS.unicode += [
'/intl/icu/source/i18n/unicode/ulocdata.h',
'/intl/icu/source/i18n/unicode/umsg.h',
'/intl/icu/source/i18n/unicode/unirepl.h',
'/intl/icu/source/i18n/unicode/unounclass.h',
'/intl/icu/source/i18n/unicode/unum.h',
'/intl/icu/source/i18n/unicode/unumberformatter.h',
'/intl/icu/source/i18n/unicode/unumberrangeformatter.h',
Expand Down
42 changes: 24 additions & 18 deletions intl/icu-patches/bug-1614941-dsb-hsb-dates.diff
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
diff --git a/intl/icu/source/data/locales/dsb.txt b/intl/icu/source/data/locales/dsb.txt
--- a/intl/icu/source/data/locales/dsb.txt
+++ b/intl/icu/source/data/locales/dsb.txt
@@ -547,23 +547,27 @@ dsb{
other{"W. 'tyźeń' MMMM"}
two{"W. 'tyźeń' MMMM"}
@@ -532,25 +532,29 @@ dsb{
few{"'tyźeń' W MMMM"}
one{"'tyźeń' W MMMM"}
other{"'tyźeń' W MMMM"}
two{"'tyźeń' W MMMM"}
}
MMMMd{"d. MMMM"}
- MMMMd{"d MMMM"}
+ MMMMd{"d. MMMM"}
MMMd{"d. MMM"}
+ MMd{"d. MM"}
+ MMdd{"dd. MM"}
Md{"d.M."}
d{"d."}
h{"ha"}
hm{"h:mma"}
hms{"h:mm:ssa"}
d{"d"}
h{"h a"}
hm{"h:mm a"}
hms{"h:mm:ss a"}
ms{"mm:ss"}
y{"y"}
yM{"M.y"}
Expand All @@ -28,23 +31,26 @@ diff --git a/intl/icu/source/data/locales/dsb.txt b/intl/icu/source/data/locales
yQQQ{"QQQ y"}
yQQQQ{"QQQQ y"}
yw{
few{"w. 'tyźeń' 'lěta' Y"}
few{"'tyźeń' w 'lěta' Y"}
diff --git a/intl/icu/source/data/locales/hsb.txt b/intl/icu/source/data/locales/hsb.txt
--- a/intl/icu/source/data/locales/hsb.txt
+++ b/intl/icu/source/data/locales/hsb.txt
@@ -546,23 +546,27 @@ hsb{
other{"W. 'tydźeń' MMMM"}
two{"W. 'tydźeń' MMMM"}
@@ -531,25 +531,29 @@ hsb{
few{"'tydźeń' W MMMM"}
one{"'tydźeń' W MMMM"}
other{"'tydźeń' W MMMM"}
two{"'tydźeń' W MMMM"}
}
MMMMd{"d. MMMM"}
- MMMMd{"d MMMM"}
+ MMMMd{"d. MMMM"}
MMMd{"d. MMM"}
+ MMd{"d. MM"}
+ MMdd{"dd. MM"}
Md{"d.M."}
d{"d."}
h{"ha"}
hm{"h:mma"}
hms{"h:mm:ssa"}
d{"d"}
h{"h a"}
hm{"h:mm a"}
hms{"h:mm:ss a"}
ms{"mm:ss"}
y{"y"}
yM{"M.y"}
Expand All @@ -59,4 +65,4 @@ diff --git a/intl/icu/source/data/locales/hsb.txt b/intl/icu/source/data/locales
yQQQ{"QQQ y"}
yQQQQ{"QQQQ y"}
yw{
few{"w. 'tydźeń' 'lěta' Y"}
few{"'tydźeń' w 'lěta' Y"}
67 changes: 15 additions & 52 deletions intl/icu-patches/bug-1706949-wasi-workaround.diff
Original file line number Diff line number Diff line change
Expand Up @@ -282,17 +282,15 @@ index 8d76b3f..c1a58db 100644


diff --git a/intl/icu/source/common/unifiedcache.cpp b/intl/icu/source/common/unifiedcache.cpp
index 493ab79..a13eed8 100644
--- a/intl/icu/source/common/unifiedcache.cpp
+++ b/intl/icu/source/common/unifiedcache.cpp
@@ -11,19 +11,23 @@
*/

@@ -13,15 +13,19 @@
#include "unifiedcache.h"

#include <algorithm> // For std::max()
-#include <mutex>
+#ifndef __wasi__
+ #include <mutex>
#include <mutex>
+#endif

#include "uassert.h"
Expand All @@ -304,14 +302,10 @@ diff --git a/intl/icu/source/common/unifiedcache.cpp b/intl/icu/source/common/un
static std::mutex *gCacheMutex = nullptr;
static std::condition_variable *gInProgressValueAddedCond;
+#endif
static icu::UInitOnce gCacheInitOnce {};
static icu::UInitOnce gCacheInitOnce = U_INITONCE_INITIALIZER;

static const int32_t MAX_EVICT_ITERATIONS = 10;
static const int32_t DEFAULT_MAX_UNUSED = 1000;
static const int32_t DEFAULT_PERCENTAGE_OF_IN_USE = 100;
@@ -32,14 +36,16 @@ static const int32_t DEFAULT_PERCENTAGE_OF_IN_USE = 100;
U_CDECL_BEGIN
static UBool U_CALLCONV unifiedcache_cleanup() {
@@ -34,10 +38,12 @@ static UBool U_CALLCONV unifiedcache_cleanup() {
gCacheInitOnce.reset();
delete gCache;
gCache = nullptr;
Expand All @@ -321,14 +315,10 @@ diff --git a/intl/icu/source/common/unifiedcache.cpp b/intl/icu/source/common/un
gInProgressValueAddedCond->~condition_variable();
gInProgressValueAddedCond = nullptr;
+#endif
return true;
return TRUE;
}
U_CDECL_END


@@ -70,12 +76,14 @@ CacheKeyBase::~CacheKeyBase() {
static void U_CALLCONV cacheInit(UErrorCode &status) {
U_ASSERT(gCache == NULL);
@@ -72,8 +78,10 @@ static void U_CALLCONV cacheInit(UErrorCode &status) {
ucln_common_registerCleanup(
UCLN_COMMON_UNIFIED_CACHE, unifiedcache_cleanup);

Expand All @@ -339,11 +329,7 @@ diff --git a/intl/icu/source/common/unifiedcache.cpp b/intl/icu/source/common/un
gCache = new UnifiedCache(status);
if (gCache == NULL) {
status = U_MEMORY_ALLOCATION_ERROR;
}
if (U_FAILURE(status)) {
@@ -133,41 +141,53 @@ void UnifiedCache::setEvictionPolicy(
}
if (count < 0 || percentageOfInUseItems < 0) {
@@ -135,28 +143,38 @@ void UnifiedCache::setEvictionPolicy(
status = U_ILLEGAL_ARGUMENT_ERROR;
return;
}
Expand Down Expand Up @@ -382,8 +368,7 @@ diff --git a/intl/icu/source/common/unifiedcache.cpp b/intl/icu/source/common/un

// Use a loop in case cache items that are flushed held hard references to
// other cache items making those additional cache items eligible for
// flushing.
while (_flush(false));
@@ -165,7 +183,9 @@ void UnifiedCache::flush() const {
}

void UnifiedCache::handleUnreferencedObject() const {
Expand All @@ -393,11 +378,7 @@ diff --git a/intl/icu/source/common/unifiedcache.cpp b/intl/icu/source/common/un
--fNumValuesInUse;
_runEvictionSlice();
}

#ifdef UNIFIED_CACHE_DEBUG
@@ -182,11 +202,13 @@ void UnifiedCache::dump() {
}
cache->dumpContents();
@@ -184,7 +204,9 @@ void UnifiedCache::dump() {
}

void UnifiedCache::dumpContents() const {
Expand All @@ -407,25 +388,17 @@ diff --git a/intl/icu/source/common/unifiedcache.cpp b/intl/icu/source/common/un
_dumpContents();
}

// Dumps content of cache.
// On entry, gCacheMutex must be held.
@@ -222,11 +244,13 @@ UnifiedCache::~UnifiedCache() {
flush();
{
@@ -224,7 +246,9 @@ UnifiedCache::~UnifiedCache() {
// Now all that should be left in the cache are entries that refer to
// each other and entries with hard references from outside the cache.
// Nothing we can do about these so proceed to wipe out the cache.
+#ifndef __wasi__
std::lock_guard<std::mutex> lock(*gCacheMutex);
+#endif
_flush(true);
_flush(TRUE);
}
uhash_close(fHashtable);
fHashtable = nullptr;
delete fNoValue;
@@ -323,11 +347,13 @@ void UnifiedCache::_putNew(

void UnifiedCache::_putIfAbsentAndGet(
@@ -325,7 +349,9 @@ void UnifiedCache::_putIfAbsentAndGet(
const CacheKeyBase &key,
const SharedObject *&value,
UErrorCode &status) const {
Expand All @@ -435,11 +408,7 @@ diff --git a/intl/icu/source/common/unifiedcache.cpp b/intl/icu/source/common/un
const UHashElement *element = uhash_find(fHashtable, &key);
if (element != NULL && !_inProgress(element)) {
_fetch(element, value, status);
return;
}
@@ -348,18 +374,22 @@ UBool UnifiedCache::_poll(
const CacheKeyBase &key,
const SharedObject *&value,
@@ -350,14 +376,18 @@ UBool UnifiedCache::_poll(
UErrorCode &status) const {
U_ASSERT(value == NULL);
U_ASSERT(status == U_ZERO_ERROR);
Expand All @@ -458,11 +427,7 @@ diff --git a/intl/icu/source/common/unifiedcache.cpp b/intl/icu/source/common/un
element = uhash_find(fHashtable, &key);
}

// If the hash table contains an entry for the key,
// fetch out the contents and return them.
@@ -426,13 +456,15 @@ void UnifiedCache::_put(
UHashElement *ptr = const_cast<UHashElement *>(element);
ptr->value.pointer = (void *) value;
@@ -428,9 +458,11 @@ void UnifiedCache::_put(
U_ASSERT(oldValue == fNoValue);
removeSoftRef(oldValue);

Expand All @@ -474,8 +439,6 @@ diff --git a/intl/icu/source/common/unifiedcache.cpp b/intl/icu/source/common/un
}

void UnifiedCache::_fetch(
const UHashElement *element,
const SharedObject *&value,
diff --git a/intl/icu/source/i18n/decContext.h b/intl/icu/source/i18n/decContext.h
index 59ab65e..20f3526 100644
--- a/intl/icu/source/i18n/decContext.h
Expand Down
32 changes: 32 additions & 0 deletions intl/icu-patches/bug-1766220-ICU-21994.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# https://github.com/unicode-org/icu/pull/2067
# https://github.com/unicode-org/icu/pull/2067.diff
#
# ICU bug: https://unicode-org.atlassian.net/browse/ICU-21994

diff --git a/intl/icu/source/common/locid.cpp b/intl/icu/source/common/locid.cpp
index 73bb8d8aec1..96d3851804d 100644
--- a/intl/icu/source/common/locid.cpp
+++ b/intl/icu/source/common/locid.cpp
@@ -716,20 +716,19 @@ AliasDataBuilder::readAlias(
status = U_MEMORY_ALLOCATION_ERROR;
return;
}
- int i = 0;
- while (ures_hasNext(alias)) {
+ for (int i = 0; U_SUCCESS(status) && ures_hasNext(alias); i++) {
LocalUResourceBundlePointer res(
ures_getNextResource(alias, nullptr, &status));
const char* aliasFrom = ures_getKey(res.getAlias());
UnicodeString aliasTo =
ures_getUnicodeStringByKey(res.getAlias(), "replacement", &status);
+ if (U_FAILURE(status)) return;

checkType(aliasFrom);
checkReplacement(aliasTo);

rawTypes[i] = aliasFrom;
rawIndexes[i] = strings->add(aliasTo, status);
- i++;
}
}

19 changes: 0 additions & 19 deletions intl/icu-patches/bug-1792775-ICU-22198.diff

This file was deleted.

Loading

0 comments on commit 4dbf568

Please sign in to comment.