bug-inetutils
[Top][All Lists]
Advanced

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

Re: [bug-inetutils] Re: Internationalized domain names teaser


From: Simon Josefsson
Subject: Re: [bug-inetutils] Re: Internationalized domain names teaser
Date: Wed, 08 Jan 2003 16:00:14 +0100
User-agent: Gnus/5.090011 (Oort Gnus v0.11) Emacs/21.3.50 (i686-pc-linux-gnu)

"Martin v. Löwis" <address@hidden> writes:

> Simon Josefsson wrote:
>> Is anyone on the GNU Libc list aware of any API standardization in
>> this area?  Any thought or input on this is appreciated.
>
> I would suggest that hostnames should be considered to be encoded with
> the encoding of nl_langinfo(CODESET).

This is what libidn does (when the *locale* functions are used), btw.

> All routines taking hostnames should then apply IDNA to their
> parameters; those taking flags (e.g. getaddrinfo) should provide a
> flag to suppress IDNA.

Sounds simple enough.  But the IDNA specification says the following:

,----
| Because these resolver libraries today expect only domain names in
| ASCII, applications MUST prepare labels that are passed to the resolver
| library using the ToASCII operation. Labels received from the resolver
| library contain only ASCII characters; internationalized labels that
| cannot be represented directly in ASCII use the ACE form. ACE labels
| always include the ACE prefix.
`----

I think the IDNA specification gives poor recommendations in this
area, an area which doesn't even concern the IDNA protocol itself.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]