Fwd: "International Domain Names" support in KDE

Thiago Macieira thiagom at wanadoo.fr
Mon Jan 27 23:28:10 GMT 2003


Waldo Bastian wrote:
>On Monday 27 January 2003 23:08, Thiago Macieira wrote:
>> The resolver part of the code is more or less settled. I wonder how
>> support goes in the URL part now...
>
>Trying to figure that out... I think KURL should convert alls hosts to their
>ascii representation, but with prettyURL and prettyHost returning the
> unicode representation. I just need to figure out if there are
> urls/ioslaves around that use the host-name part of an URL for something
> that isn't a DNS-style host.
>
>And then all use of KURL::host() must be reviewed to see if it should be
>changed to KURL::prettyHost()

From what I gather, the ACE form of the host should never be used, except when 
passing down to an ASCII-only service, such as DNS. Other 8-bit only services 
might want to use UTF-8 in the future.

So, IMO, KURL should normalise the hostnames (encode then decode -- see my 
normalizeDomain function in the Resolver class), but other than that do 
nothing else with it. All ioslaves and apps should accept Unicode hostnames 
and pass them down to the resolution API as such. Only the resolution process 
itself should transform into ACE.

And if you'll notice in the API I'm writing, even the transformation into ACE 
is done pretty down the road, to just before the gethostbyname2_r/getaddrinfo 
calls.

If I understood correctly the documents, then the normalised form will be the 
same for every equivalent hostname, including the ACE-encoded form. 
Normalisation catches case differences as well as some common 
transformations, like the German ß into ss and some other digraphs (but not 
ä, ö, ü into ae, oe, ue).

-- 
  Thiago Macieira - UFOT Registry number: 1001
 thiagom at mail.com
   ICQ UIN: 1967141  PGP/GPG: 0x6EF45358
     Registered Linux user #65028
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030128/490971d7/attachment.sig>


More information about the kde-core-devel mailing list