Software /
code /
prosody
Changeset
2572:0584e157f073
util.encodings: Use STD3 ASCII rules for idna.to_ascii.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 10 Feb 2010 00:12:48 +0500 |
parents | 2571:8a16c5e92bcb |
children | 2573:60493186fef6 |
files | util-src/encodings.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util-src/encodings.c Mon Feb 08 11:22:21 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);