Subject: | URI::XS-2.0.1 doesn't work properly with IDN domains |
Date: | Fri, 07 Aug 2020 11:29:15 +0300 |
To: | bug-URI-XS [...] rt.cpan.org |
From: | Дмитрий Черненко <_chernenko [...] mail.ru> |
Hi!
I made some benchmark tests and was pleased by speed of URI::XS module (version 2.0.1).
But i faced some pitfalls during an attempt to migrate from URI module.
Some inconvenient things are the absent of any analog of «new_abs» or «canonical» methods.
But the main probelm is in the fact, that this module doesn’t support IDNs at all.
Please see the difference between the new module and the old one:
##############
$ perl -Mutf8 -MURI -Mstrict -we 'printf("%s\n", URI->new("http://красный-партизан.рф"));'
http://xn----7sbba8afeg2agrhgiv2l.xn--p1ai
$ perl -Mutf8 -MURI::XS -Mstrict -we 'my $u = URI::XS->new("http://красный-партизан.рф"); printf("%s\n", $u);'
$
##############
It makes impossilbe the usage of URI::XS module for now.
Please add such an ability to your module.
Thank you in adavnce.
With best regards, Chernenko Dmitriy.