summaryrefslogtreecommitdiff
path: root/system/icu/checkimpl.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-04 07:20:39 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-04 07:20:39 +0000
commit8424452d5a75e53cfaafceeceb0f5f4edc3eb4ff (patch)
tree51133cd87a900fef8267c6dc82711e7952d882ea /system/icu/checkimpl.patch
parent2992f0d1c7675dad0e83f8544bbbba4a4907d20f (diff)
downloadpackages-8424452d5a75e53cfaafceeceb0f5f4edc3eb4ff.tar.gz
packages-8424452d5a75e53cfaafceeceb0f5f4edc3eb4ff.tar.bz2
packages-8424452d5a75e53cfaafceeceb0f5f4edc3eb4ff.tar.xz
packages-8424452d5a75e53cfaafceeceb0f5f4edc3eb4ff.zip
system/icu: fix regression that breaks Mozilla
Diffstat (limited to 'system/icu/checkimpl.patch')
-rw-r--r--system/icu/checkimpl.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/system/icu/checkimpl.patch b/system/icu/checkimpl.patch
new file mode 100644
index 000000000..53cfa724f
--- /dev/null
+++ b/system/icu/checkimpl.patch
@@ -0,0 +1,37 @@
+From 8baff8f03e07d8e02304d0c888d0bb21ad2eeb01 Mon Sep 17 00:00:00 2001
+From: Jeff Genovy <29107334+jefgen@users.noreply.github.com>
+Date: Wed, 17 Oct 2018 19:47:35 -0700
+Subject: [PATCH] ICU-20208 uspoof.cpp function checkImpl should be static,
+ regenerate urename.h
+
+(cherry picked from commit 9ec2c332c1c9156323944ea2b15c2b91952efae4)
+---
+ common/unicode/urename.h | 1 -
+ i18n/uspoof.cpp | 2 +-
+ 2 files changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/common/unicode/urename.h b/common/unicode/urename.h
+index 5812173e39c..0512be3b6e5 100644
+--- a/common/unicode/urename.h
++++ b/common/unicode/urename.h
+@@ -110,7 +110,6 @@
+ #define _UTF7Data U_ICU_ENTRY_POINT_RENAME(_UTF7Data)
+ #define _UTF8Data U_ICU_ENTRY_POINT_RENAME(_UTF8Data)
+ #define allowedHourFormatsCleanup U_ICU_ENTRY_POINT_RENAME(allowedHourFormatsCleanup)
+-#define checkImpl U_ICU_ENTRY_POINT_RENAME(checkImpl)
+ #define cmemory_cleanup U_ICU_ENTRY_POINT_RENAME(cmemory_cleanup)
+ #define dayPeriodRulesCleanup U_ICU_ENTRY_POINT_RENAME(dayPeriodRulesCleanup)
+ #define deleteAllowedHourFormats U_ICU_ENTRY_POINT_RENAME(deleteAllowedHourFormats)
+diff --git a/i18n/uspoof.cpp b/i18n/uspoof.cpp
+index 8e3d69ede2b..66f228f037a 100644
+--- a/i18n/uspoof.cpp
++++ b/i18n/uspoof.cpp
+@@ -547,7 +547,7 @@ uspoof_checkUnicodeString(const USpoofChecker *sc,
+ return uspoof_check2UnicodeString(sc, id, NULL, status);
+ }
+
+-int32_t checkImpl(const SpoofImpl* This, const UnicodeString& id, CheckResult* checkResult, UErrorCode* status) {
++static int32_t checkImpl(const SpoofImpl* This, const UnicodeString& id, CheckResult* checkResult, UErrorCode* status) {
+ U_ASSERT(This != NULL);
+ U_ASSERT(checkResult != NULL);
+ checkResult->clear();