IDNA and getnameinfo() and getaddrinfo()
    Simon Josefsson 
    simon at josefsson.org
       
    Mon Jun 14 22:33:48 CEST 2010
    
    
  
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
/Simon
    
    
More information about the Idna-update
mailing list