From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105774 invoked by alias); 16 May 2018 09:10:53 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 105559 invoked by uid 89); 16 May 2018 09:10:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Greetings, surname, sell X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 16 May 2018 09:10:23 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5A9E6805A52F; Wed, 16 May 2018 09:10:22 +0000 (UTC) Received: from oldenburg.str.redhat.com (dhcp-192-212.str.redhat.com [10.33.192.212]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E95002026DEF; Wed, 16 May 2018 09:10:21 +0000 (UTC) Subject: Re: getaddrinfo chokes at hostnames containing "emoji" characters To: Name Surname , "libc-help@sourceware.org" References: From: Florian Weimer Message-ID: <50fefc33-ca42-37ff-4b7d-162e1d6b81eb@redhat.com> Date: Wed, 16 May 2018 09:10:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-05/txt/msg00013.txt.bz2 On 05/16/2018 10:40 AM, Name Surname wrote: > Greetings everyone. > > I recently bought a domain name containing "emoji" characters, as a > novelty and in order to do some experiments. I tried getting the IP > address associated to it using getaddrinfo, however, it errs and returns > "Name or service not known". The same thing happens with any program > that uses glibc for name resolution. I understand that emoji domains are > not valid according to IDNA2008, however, some ccTLDs sell them, they > were supported according to IDNA2003, and web browsers resolve them > normally according to IDNA2003 (at least firefox does). > > Is this a bug or a feature? In the near future, glibc will use the system libidn2 library to implement AI_IDN getaddrinfo support. You will have to convince the libidn2 maintainers to enable Emoji support (by default), but as long as there is no published standard for that at all (perhaps with the exception of Unicode TR46 transitional mode, which is not recommended), this seems difficult. Thanks, Florian