# HG changeset patch # User Waqas Hussain # Date 1265742768 -18000 # Node ID 3f646804ed6ada453422de4ab871723609e44a2a # Parent c940726e787e585e71cbdbe7b85c85fef8e13afd util.encodings: Use STD3 ASCII rules for idna.to_ascii. diff -r c940726e787e -r 3f646804ed6a util-src/encodings.c --- a/util-src/encodings.c Fri Feb 05 15:05:39 2010 +0000 +++ b/util-src/encodings.c Wed Feb 10 00:12:48 2010 +0500 @@ -174,7 +174,7 @@ size_t len; const char *s = luaL_checklstring(L, 1, &len); char* output = NULL; - int ret = idna_to_ascii_8z(s, &output, 0); + int ret = idna_to_ascii_8z(s, &output, IDNA_USE_STD3_ASCII_RULES); if (ret == IDNA_SUCCESS) { lua_pushstring(L, output); idn_free(output);