Subject: | Net-LibIDN bug? |
Date: | Sun, 22 Jul 2012 17:08:52 +0200 |
To: | bug-Net-LibIDN [...] rt.cpan.org |
From: | Jose Palao <jpalao [...] personasytecnicas.com> |
Hi there Thomas,
This may or may not be a bug, but just in case I wanted to inform.
Reverse translation does not seem to work for "alí.com"
I have reproduced this under fedora 15 and OS X 10.5.8
Thank you,
Jose
Fedora
======
[root@www ~]# rpm -qi libidn
Name : libidn
Version : 1.19
Release : 2.fc15
Architecture: i686
Install Date: Fri 13 May 2011 09:43:56 PM CEST
Group : System Environment/Libraries
Size : 559445
License : LGPLv2+ and GPLv3+ and GFDL
Signature : RSA/SHA256, Fri 11 Feb 2011 09:04:11 PM CET, Key ID b4ebf579069c8460
Source RPM : libidn-1.19-2.fc15.src.rpm
Build Date : Wed 09 Feb 2011 09:43:07 PM CET
Build Host : x86-06.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager : Fedora Project
Vendor : Fedora Project
URL : http://www.gnu.org/software/libidn/
Summary : Internationalized Domain Name support library
Description :
GNU Libidn is an implementation of the Stringprep, Punycode and
IDNA specifications defined by the IETF Internationalized Domain
Names (IDN) working group, used for internationalized domain
names.
[root@www ~]# perl -MNet::LibIDN=idn_to_ascii,idn_prep_name -le "print idn_to_ascii(idn_prep_name('alí.com'))"
xn--al-tia.com
[root@www ~]# perl -MNet::LibIDN=idn_to_unicode,idn_prep_name -le "binmode STDOUT, ':utf8'; print idn_to_unicode('xn--al-tia.com')"
alã.com
OSX
===
bash-3.2# port -v installed libidn
Warning: port definitions are more than two weeks old, consider using selfupdate
The following ports are currently installed:
libidn @1.22_0 platform='darwin 9' archs='i386'
libidn @1.22_0+universal (active) platform='darwin 9' archs='i386 ppc'
bash-3.2# perl -MNet::LibIDN=idn_to_ascii,idn_prep_name -le "print idn_to_ascii(idn_prep_name('alí.com'))"
xn--al-tia.com
bash-3.2# perl -MNet::LibIDN=idn_to_unicode,idn_prep_name -le "binmode STDOUT, ':utf8'; print idn_to_unicode('xn--al-tia.com')"
alã.com