Attached is a patch enabling resolution of emoji domain names on
programs that use libidn2. It patches the script get-tables-from-iana.pl
to set the state of emoji characters to PVALID, and uses the
experimental perl "smartmatch" operator, which may make it unacceptable.
Nevertheless, I believe that it provides a proof that a solution is
possible, and might prove useful to people having to resolve such
domains from a console application, so I am posting it here. It is
provided with ABSOLUTELY NO WARRANTY. However, this patch does not
affect applications using glibc to resolve domains. As such, I am
tagging this as an issue in glibc, too.

Of course, I understand that IANA disallows the use of emojis in domain
names. Perhaps a solution could be to resolve these domains, but print a
warning on the user's console? I do not have time to think about this.

** Patch added: "gen-tables-from-iana.patch"
   
https://bugs.launchpad.net/ubuntu/+source/libidn2-0/+bug/1771109/+attachment/5139707/+files/gen-tables-from-iana.patch

** Also affects: glibc (Ubuntu)
   Importance: Undecided
       Status: New

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

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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to