Skip Menu |

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

Report information
The Basics
Id: 78763
Status: open
Priority: 0/
Queue: URI-UTF8-Punycode

People
Owner: TWINKLE [...] cpan.org
Requestors: electron17 [...] yandex.ru
Cc:
AdminCc:

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



Subject: Wrong work with cyrillic domains
Version of module : 0.96 OS : Debian 6 x86_64 perl version : v5.10.1 (*) built for x86_64-linux-gnu-thread-multi Your module is not correct support for encode cyrillic domains. My script : #!/usr/bin/perl use strict; use warnings; use URI::UTF8::Punycode; my $enc = puny_enc('одинодин.рф'); print "$enc\n"; Script output : xn--.-gtbapb2accdy8b
On 2012-8月-03 金 06:14:31, Electron wrote: Show quoted text
> Version of module : 0.96 > OS : Debian 6 x86_64 > perl version : v5.10.1 (*) built for x86_64-linux-gnu-thread-multi > > Your module is not correct support for encode cyrillic domains. > > My script : > > #!/usr/bin/perl > use strict; > use warnings; > > use URI::UTF8::Punycode; > > my $enc = puny_enc('одинодин.рф'); > print "$enc\n"; > > Script output : > > xn--.-gtbapb2accdy8b
this module does not batch processing. need to call subroutine on each level of the domains. Sample: my $enc_all = puny_enc('одинодин').'.'.puny_enc('рф'); print "$enc_all\n"; Output: xn--d1aalbxcbd.xn--p1ai