curl-library
Re: IDN support using native win32 APIs
Date: Tue, 28 Dec 2010 11:53:23 +0100
hi Guenter,
On Tue, Dec 28, 2010 at 3:18 AM, Guenter <lists_at_gknw.net> wrote:
> unfortunately not - I did a quick search for IdnToUnicode and found nothing
> in my latest MinGW headers ... :-(
> I've also checked latest OpenWatcom, but it also lacks of those;
> though found similar functions prefixed with 'Rtl', f.e. RtlIdnToUnicode in
> a folder named 'ddk'.
Yes, those are the kernel underlying functions. It is usually not
recommended to use them directly.
> What would you think about a dynamic import of these functions, and if that
> fails then continue without IDN support? This would have the benefit that
> binaries compiled with this feature would work too on platforms which lack
> IDN support.
We could use the LoadLibrary to detect if normaliz.dll is installed,
load it and call the desired functions. However I fear a little bit
the performance impact here. As host resolution can be a bottleneck,
especially when an app is doing a lot of different requests. Maybe we
can do it for the mingw builds only?
Cheers,
-- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-12-28