[PATCH] Switch IDNA implementation to libidn2 [BZ #19728] [BZ #19729] [BZ #22247]

Florian Weimer fweimer@redhat.com
Wed Feb 7 15:57:00 GMT 2018


On 02/07/2018 03:14 PM, Florian Weimer wrote:
> On 02/02/2018 01:41 PM, Florian Weimer wrote:
>> +* The AI_IDN_USE_STD3_ASCII_RULES and NI_IDN_USE_STD3_ASCII_RULES 
>> flags for
>> +  the getaddrinfo and getnameinfo functions have been deprecated.  
>> The STD3
>> +  restriction (rejecting '_' in host names, among other things) has been
>> +  removed, for increased compatibility with non-IDN name resolution.
> 
> This part is not true.  My intent was to allow _ in host names for IDNA 
> names (but not $ and other shell meta-characters), but the patch does 
> not achieve that.  I need to check what libidn2 actually offers in this 
> area.

In case anyone is reading along: I've asked for help on this matter:

   https://bugzilla.redhat.com/show_bug.cgi?id=1543021

The current libidn2 behavior does not make much sense to me.

Florian



More information about the Libc-alpha mailing list