[Bug 1771109] Re: Domain names containing emoji characters are not supported in console applications

Simon Dรฉziel 1771109 at bugs.launchpad.net
Thu Jan 17 20:58:42 UTC 2019


wget has no problem with it:

root at b1:~# wget ๐Ÿ“™.la
--2019-01-17 20:53:17--  http://xn--yt8h.la/
Resolving xn--yt8h.la (xn--yt8h.la)... 62.116.130.8
Connecting to xn--yt8h.la (xn--yt8h.la)|62.116.130.8|:80... connected.
...

root at b1:~# curl ๐Ÿ“™.la
curl: (3) Failed to convert ๐Ÿ“™.la to ACE; string contains a disallowed character

Yet, both link to libidn2:

root at b1:~# ldd $(which wget) | grep idn
	libidn2.so.0 => /usr/lib/x86_64-linux-gnu/libidn2.so.0 (0x00007fc8ce5ba000)
root at b1:~# ldd $(which curl) | grep idn
	libidn2.so.0 => /usr/lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f295d476000)

So maybe it's a bug in curl itself?

Additional info:

root at b1:~# apt-cache policy curl wget
curl:
  Installed: 7.58.0-2ubuntu3.5
  Candidate: 7.58.0-2ubuntu3.5
  Version table:
 *** 7.58.0-2ubuntu3.5 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     7.58.0-2ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
wget:
  Installed: 1.19.4-1ubuntu2.1
  Candidate: 1.19.4-1ubuntu2.1
  Version table:
 *** 1.19.4-1ubuntu2.1 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1.19.4-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libidn2-0 in Ubuntu.
https://bugs.launchpad.net/bugs/1771109

Title:
  Domain names containing emoji characters are not supported in console
  applications

Status in glibc package in Ubuntu:
  New
Status in libidn2 package in Ubuntu:
  New
Status in libidn2-0 package in Ubuntu:
  New

Bug description:
  Ubuntu release:
  user at machine:~$ lsb_release -rd
  Description:	Ubuntu 18.04 LTS
  Release:	18.04

  Description:
  What I did: Attempted to access a domain name containing an emoji character using curl and other terminal applications
  What I expected to happen: Successfully interact with the server represented by said domain name
  What happened instead: Got error saying that the domain contains a disallowed character.
  Notes: Accessing such a domain using firefox works normally. Interacting with the domain using its punycode form works just fine. Accessing IDNs containing national characters (such as hxxp://ฤ…ฤ‡ฤ™ล‚ล„รณล›ลบลผ.pl/) works as intended.

  Steps to reproduce:
  user at machine:~$ curl ๐Ÿ“™.la
  curl: (3) Failed to convert ๐Ÿ“™.la to ACE; string contains a disallowed character

  Disclosure: I own such a domain name, but it is not the domain
  provided in the example.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1771109/+subscriptions



More information about the foundations-bugs mailing list