From 9bb4536ad77652b7d0da2794a10c6ccf0064a6cf Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 20 Aug 2024 17:27:57 +0000 Subject: [PATCH] ICU-22374 guard gCollationBinKey behind if !UCONFIG_NO_COLLATION See #2442 --- icu4c/source/common/uresdata.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/icu4c/source/common/uresdata.cpp b/icu4c/source/common/uresdata.cpp index a6b540a22571..896e4ed1d6f1 100644 --- a/icu4c/source/common/uresdata.cpp +++ b/icu4c/source/common/uresdata.cpp @@ -1040,13 +1040,10 @@ enum { /* The table item key string is not locally available. */ static const char *const gUnknownKey=""; -/* resource table key for collation binaries: "%%CollationBin" */ -static const char16_t gCollationBinKey[]={ - 0x25, 0x25, - 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x42, 0x69, 0x6e, - 0 -}; +#if !UCONFIG_NO_COLLATION +// resource table key for collation binaries +static const char16_t gCollationBinKey[]=u"%%CollationBin"; +#endif /* * swap one resource item