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.
- RE: [idn] The layers and character... Brian W. Spolarich
- Re: [idn] The layers and character... Keith Moore
- Re: [idn] The layers and character... Paul Hoffman / IMC
- Re: [idn] The layers and character... Keith Moore
- Re: [idn] The layers and character... Paul Hoffman / IMC
- Re: [idn] The layers and character... Eric Brunner-Williams in Portland Maine
- Re: [idn] The layers and character... Dan
- Re: [idn] The layers and character... David C Lawrence
- Re: [idn] The layers and character... Keith Moore
- Re: [idn] The layers and character... Patrik F�ltstr�m
- Re: [idn] The layers and character... Marc Blanchet
- Re: [idn] The layers and character... John C Klensin
- Re: [idn] The layers and character... Patrik F�ltstr�m
- Re: [idn] The layers and character... John C Klensin
- Re: [idn] The layers and character... Patrik F�ltstr�m
- Re: [idn] The layers and character... John C Klensin
- Re: [idn] The layers and character... D. J. Bernstein
- Re: [idn] The layers and character... Patrik F�ltstr�m
- Re: [idn] The layers and character... Erik Nordmark
- Re: [idn] The layers and character... Keith Moore
