aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/encodings.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-04-24 16:16:19 +0200
committerKim Alvefur <zash@zash.se>2019-04-24 16:16:19 +0200
commit4ff75d0fc9c98e1b25c4f9c72060d14b15a0dc9c (patch)
treebcc3530945158431080e869c16f2a594d2175804 /util-src/encodings.c
parent7c01e612b7e93c1666e63ab33c0340b5b33d076b (diff)
downloadprosody-4ff75d0fc9c98e1b25c4f9c72060d14b15a0dc9c.tar.gz
prosody-4ff75d0fc9c98e1b25c4f9c72060d14b15a0dc9c.zip
util.encodings: Allow unassigned code points in ICU mode to match libidn behavior (fixes #1348)
Diffstat (limited to 'util-src/encodings.c')
-rw-r--r--util-src/encodings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/encodings.c b/util-src/encodings.c
index f7e8131f..e55a3f44 100644
--- a/util-src/encodings.c
+++ b/util-src/encodings.c
@@ -299,7 +299,7 @@ static int icu_stringprep_prep(lua_State *L, const UStringPrepProfile *profile)
return 1;
}
- prepped_len = usprep_prepare(profile, unprepped, unprepped_len, prepped, 1024, 0, NULL, &err);
+ prepped_len = usprep_prepare(profile, unprepped, unprepped_len, prepped, 1024, USPREP_ALLOW_UNASSIGNED, NULL, &err);
if(U_FAILURE(err)) {
lua_pushnil(L);