aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/encodings.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-04-29 15:53:52 +0200
committerKim Alvefur <zash@zash.se>2019-04-29 15:53:52 +0200
commit183b42baa0da20b06ff3429bcc75a8ce01676a1b (patch)
tree940982f4bfbc0f4819669f94b8b06c79b4125c3d /util-src/encodings.c
parent56728cf598b1f64862604d00a964fb47d96bc91c (diff)
downloadprosody-183b42baa0da20b06ff3429bcc75a8ce01676a1b.tar.gz
prosody-183b42baa0da20b06ff3429bcc75a8ce01676a1b.zip
util.encodings: Add compat with ICU before version 58
Diffstat (limited to 'util-src/encodings.c')
-rw-r--r--util-src/encodings.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/util-src/encodings.c b/util-src/encodings.c
index 0d723913..3b7f322d 100644
--- a/util-src/encodings.c
+++ b/util-src/encodings.c
@@ -324,6 +324,11 @@ UStringPrepProfile *icu_resourceprep;
UStringPrepProfile *icu_saslprep;
USpoofChecker *icu_spoofcheck;
+#if (U_ICU_VERSION_MAJOR_NUM < 58)
+/* COMPAT */
+#define USPOOF_CONFUSABLE (USPOOF_SINGLE_SCRIPT_CONFUSABLE | USPOOF_MIXED_SCRIPT_CONFUSABLE | USPOOF_WHOLE_SCRIPT_CONFUSABLE)
+#endif
+
/* initialize global ICU stringprep profiles */
void init_icu() {
UErrorCode err = U_ZERO_ERROR;