Skip Menu |

This queue is for tickets about the Net-LibIDN CPAN distribution.

Report information
The Basics
Id: 19306
Status: resolved
Priority: 0/
Queue: Net-LibIDN

People
Owner: Nobody in particular
Requestors: pawal [...] blipp.com
Cc:
AdminCc:

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



Subject: idn_to_unicode does not set string to unicode
To be able to use unicode strings with idn_to_unicode, it would be very nice to have Net::LibIDN tag the strings as unicode. Today I have to do this: decode_utf8(idn_to_unicode($name,'utf-8'));
From: THOR [...] cpan.org
On Wed May 17 11:20:12 2006, guest wrote: Show quoted text
> To be able to use unicode strings with idn_to_unicode, it would be
very Show quoted text
> nice to have Net::LibIDN tag the strings as unicode. Today I have to
do Show quoted text
> this: decode_utf8(idn_to_unicode($name,'utf-8'));
Hmm, didn't really know about Perl unicode handling when I wrote this :=) But anyway, changing this the way you suggest would a) presumably break old code and b) wouldn't work sensibly in case of returning other characters sets (idn_to_unicode is maybe a badly chosen name). Best leave those things as they are, if it's really bothering you to type the extra stuff you could possibly write a wrapper lib or something.
won't fix
Subject: Re: [rt.cpan.org #19306] idn_to_unicode does not set string to unicode
Date: Mon, 7 Aug 2006 17:11:36 +0200
To: via RT <bug-Net-LibIDN [...] rt.cpan.org>
From: Patrik Wallstrom <pawal [...] blipp.com>
On Mon, 07 Aug 2006, via RT wrote: Show quoted text
> On Wed May 17 11:20:12 2006, guest wrote:
Show quoted text
> > To be able to use unicode strings with idn_to_unicode, it would be > > very nice to have Net::LibIDN tag the strings as unicode. Today I > > have to do this: decode_utf8(idn_to_unicode($name,'utf-8'));
> > Hmm, didn't really know about Perl unicode handling when I wrote this > :=) > > But anyway, changing this the way you suggest would a) presumably > break old code and b) wouldn't work sensibly in case of returning > other characters sets (idn_to_unicode is maybe a badly chosen name). > > Best leave those things as they are, if it's really bothering > you to type the extra stuff you could possibly write a wrapper > lib or something.
Maybe you should make a note of it in the documentation then. -- patrik_wallstrom->foodfight->pawal@blipp.com->+46-733173956
Show quoted text
> Maybe you should make a note of it in the documentation then. >
Sure, will do that and close the ticket.... Thanks for the report!
New release 0.09 is just being processed, which contents something about this in the man page On Mon Aug 07 11:41:32 2006, THOR wrote: Show quoted text
> > Maybe you should make a note of it in the documentation then. > >
> > Sure, will do that and close the ticket.... Thanks for > the report! >