[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [idn] The layers and character handling in DNS



At/À 16:35 2001-02-17 -0800, Patrik Fältström you wrote/vous écriviez:
>At 13.10 -0500 01-02-17, Keith Moore wrote:
>>  > How does gethostbyname() *know for sure* what the character set of its
>>>  argument is?  Answer: it doesn't, because there is no way that it can.
>>
>>Let me suggest a different answer:
>>
>>gethostbyname() knows what the character set of the argument is
>>because, by definition, it is ASCII.
>
>FYI: In the IDNA algorithm, nameprep and ace encoding is done _before_ 
>gethostbyname() is called, for exactly the reasons Keith lists.

- One thing we also have to consider is the API (gethost*) have been 
redefined for ipv6 support, where the new api support both ipv4 and 
ipv6:  RFC2553.  IDN call should handle both old and new non-idn-aware-api.

Marc.

Marc Blanchet
Viagénie inc.
tel: 418-656-9254
http://www.viagenie.qc.ca

----------------------------------------------------------
Normos (http://www.normos.org): Internet standards portal:
IETF RFC, drafts, IANA, W3C, ATMForum, ISO, ... all in one place.