projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eea990f
)
util.encodings: Use STD3 ASCII rules for idna.to_ascii.
author
Waqas Hussain
<waqas20@gmail.com>
Tue, 9 Feb 2010 19:12:48 +0000
(
00:12
+0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Tue, 9 Feb 2010 19:12:48 +0000
(
00:12
+0500)
util-src/encodings.c
patch
|
blob
|
history
diff --git
a/util-src/encodings.c
b/util-src/encodings.c
index 5147512f82fd210b9285c0db73259363e3be5ee8..c573a330b6709ba4a8feb4b69771944309f49ab6 100644
(file)
--- a/
util-src/encodings.c
+++ b/
util-src/encodings.c
@@
-174,7
+174,7
@@
static int Lidna_to_ascii(lua_State *L) /** idna.to_ascii(s) */
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);