equal
deleted
inserted
replaced
369 options |= UIDNA_NONTRANSITIONAL_TO_UNICODE; |
369 options |= UIDNA_NONTRANSITIONAL_TO_UNICODE; |
370 #endif |
370 #endif |
371 icu_idna2008 = uidna_openUTS46(options, &err); |
371 icu_idna2008 = uidna_openUTS46(options, &err); |
372 |
372 |
373 if(U_FAILURE(err)) { |
373 if(U_FAILURE(err)) { |
374 fprintf(stderr, "[c] util.encodings: error: %s\n", u_errorName((UErrorCode)err)); |
374 fprintf(stderr, "[c] util.encodings: error: %s\n", u_errorName(err)); |
375 } |
375 } |
376 } |
376 } |
377 |
377 |
378 #define MAKE_PREP_FUNC(myFunc, prep) \ |
378 #define MAKE_PREP_FUNC(myFunc, prep) \ |
379 static int myFunc(lua_State *L) { return icu_stringprep_prep(L, prep); } |
379 static int myFunc(lua_State *L) { return icu_stringprep_prep(L, prep); } |