Fwd: "International Domain Names" support in KDE

Thiago Macieira thiagom at wanadoo.fr
Wed Jan 22 21:45:32 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Faure wrote:
>Does anyone know which parts of KDE would need to me modified to work
>with the new "International Domain Names" standard from the IETF?
>
>It seems an opensource library already exists for this (see end of mail), so
>the question is basically, who could give a hand at integrating it.

Most of the code already uses QString internally and I've specifically written 
the lookup routines to take QString as the hostname parameter, which means 
that KDE would store internally Unicode hostnames. KURL uses QStrings also, 
but I'm not sure if anywhere else a convertion to QCString or even char* is 
done. That would be unwise.

Another point is that there is still a lot of gethostbyname's still lying 
about in the code. Those should have been got rid of a long time ago and now 
is even a better time to do so. We should use only one uniform API, that can 
be modified to work with IDN in only one place.

The question then goes down to the system lookup API. So far, there was no 
standard, so in some places I've used convertion to Latin 1, in others UTF-8. 
(You may even find my comments in the code asking for a fix when a standard 
came about) It depends highly on what those functions expect as input. The 
current functions don't handle anything else than ASCII, so no matter what 
the conversion is, it would generate an invalid char for a DNS lookup.

Anyways, I'd be willing to take a look at this library. Since I'm in the 
process of writing the new resolver API, it couldn't have come in a better 
time.

- -- 
  Thiago Macieira - UFOT Registry number: 1001
 thiagom at mail.com
   ICQ UIN: 1967141  PGP/GPG: 0x6EF45358
     Registered Linux user #65028
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+LxECM/XwBW70U1gRArIHAJwKHEYsJCV0G17su7uX2s7ikezITACfT4Tr
UcWWhErYSOu2LKJF/xL5gOo=
=Qu4B
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list