Skip Menu |

This queue is for tickets about the URI-XS CPAN distribution.

Report information
The Basics
Id: 133127
Status: open
Priority: 0/
Queue: URI-XS

People
Owner: Nobody in particular
Requestors: _chernenko [...] mail.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
Птн Авг 07 05:03:26 2020, _chernenko@mail.ru писал: Show quoted text
> > 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.
hello. thanks for the report. scheduled for next release.