util-src/encodings.c
changeset 10483 d362934437eb
parent 10482 5e9a1a75f8a7
child 10925 6eb5d2bb11af
equal deleted inserted replaced
10482:5e9a1a75f8a7 10483:d362934437eb
   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); }