IDNA and getnameinfo() and getaddrinfo()
Nicolas Williams
Nicolas.Williams at oracle.com
Tue Jun 15 01:42:46 CEST 2010
On Mon, Jun 14, 2010 at 10:33:48PM +0200, Simon Josefsson wrote:
> Dave Thaler <dthaler at microsoft.com> writes:
>
> > RFC 3493 doesn't say either way whether "char *" is ANSI or UTF-8 or whatever
> > else, and as far as I know, neither does POSIX
> > (http://www.opengroup.org/onlinepubs/9699919799/functions/getaddrinfo.html).
>
> Normally in POSIX, strings are encoded in the locale coding system. If
> you are in a UTF-8 locale, the string can be assumed (by the getaddrinfo
> implementation) to be UTF-8. Otherwise it needs to be transcoded. This
> is how GNU Libc's IDN support works, see:
>
> http://git.savannah.gnu.org/cgit/libidn.git/tree/libc/getaddrinfo-idn.txt
I like that approach.
More information about the Idna-update
mailing list