# HG changeset patch # User Kim Alvefur # Date 1556115379 -7200 # Node ID 640a2b8e7806e59cafb6e4f6aa3dd876e35ea9f1 # Parent 240d3f1f7dee0282835e9742c021f93c860d28a6 util.encodings: Allow unassigned code points in ICU mode to match libidn behavior (fixes #1348) diff -r 240d3f1f7dee -r 640a2b8e7806 util-src/encodings.c --- a/util-src/encodings.c Tue Apr 23 19:21:06 2019 +0200 +++ b/util-src/encodings.c Wed Apr 24 16:16:19 2019 +0200 @@ -299,7 +299,7 @@ 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);