Software /
code /
prosody
Comparison
util-src/encodings.c @ 9979:b06f6ff878ee
util.encodings: Add compat with ICU before version 58
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 29 Apr 2019 15:53:52 +0200 |
parent | 9976:0e2f663d0714 |
child | 10006:5a5fd234dec7 |
comparison
equal
deleted
inserted
replaced
9978:53e785b1f4f6 | 9979:b06f6ff878ee |
---|---|
321 UStringPrepProfile *icu_nameprep; | 321 UStringPrepProfile *icu_nameprep; |
322 UStringPrepProfile *icu_nodeprep; | 322 UStringPrepProfile *icu_nodeprep; |
323 UStringPrepProfile *icu_resourceprep; | 323 UStringPrepProfile *icu_resourceprep; |
324 UStringPrepProfile *icu_saslprep; | 324 UStringPrepProfile *icu_saslprep; |
325 USpoofChecker *icu_spoofcheck; | 325 USpoofChecker *icu_spoofcheck; |
326 | |
327 #if (U_ICU_VERSION_MAJOR_NUM < 58) | |
328 /* COMPAT */ | |
329 #define USPOOF_CONFUSABLE (USPOOF_SINGLE_SCRIPT_CONFUSABLE | USPOOF_MIXED_SCRIPT_CONFUSABLE | USPOOF_WHOLE_SCRIPT_CONFUSABLE) | |
330 #endif | |
326 | 331 |
327 /* initialize global ICU stringprep profiles */ | 332 /* initialize global ICU stringprep profiles */ |
328 void init_icu() { | 333 void init_icu() { |
329 UErrorCode err = U_ZERO_ERROR; | 334 UErrorCode err = U_ZERO_ERROR; |
330 utrace_setLevel(UTRACE_VERBOSE); | 335 utrace_setLevel(UTRACE_VERBOSE); |