Comparison

util-src/encodings.c @ 9973:640a2b8e7806 0.11

util.encodings: Allow unassigned code points in ICU mode to match libidn behavior (fixes #1348)
author Kim Alvefur <zash@zash.se>
date Wed, 24 Apr 2019 16:16:19 +0200
parent 9153:26c5a4a14905
child 9976:0e2f663d0714
comparison
equal deleted inserted replaced
9972:240d3f1f7dee 9973:640a2b8e7806
297 if(U_FAILURE(err)) { 297 if(U_FAILURE(err)) {
298 lua_pushnil(L); 298 lua_pushnil(L);
299 return 1; 299 return 1;
300 } 300 }
301 301
302 prepped_len = usprep_prepare(profile, unprepped, unprepped_len, prepped, 1024, 0, NULL, &err); 302 prepped_len = usprep_prepare(profile, unprepped, unprepped_len, prepped, 1024, USPREP_ALLOW_UNASSIGNED, NULL, &err);
303 303
304 if(U_FAILURE(err)) { 304 if(U_FAILURE(err)) {
305 lua_pushnil(L); 305 lua_pushnil(L);
306 return 1; 306 return 1;
307 } else { 307 } else {