Comment 2 for bug 1771109

Revision history for this message
augeus (augeus) wrote :

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.