On Tue Feb 19 10:18:57 2013, YENYA wrote:
Show quoted text> Hello,
>
> On Tue Mar 17 02:47:14 2009, MSCHWERN wrote:
> > If anyone's interested there's the IDNA branch on github which has most
> > of this done. Just needs to keep URI from escaping things and solve the
> > foo:<1.2.3.4> problem.
>
> as far as I can see, the IDNA branch works for me. Would you mind to
> merge it and make a release? There is a merge conflict in t/Find.t which
> can be easily solved by keeping the tests added by both branches.
Well, the IDNA branch has one problem - the escape_func is called with correct second argument, but incorrect first argument. The first argument is result of the uri_unescape() call near the end of _is_uri() function, and uri_unescape() returns bytes instead of characters. A clean solution would be to have some kind of uri_unescape_utf8() inside URI/Escape.pm, but it is also possible to wrap the uri_unescape() call inside Encode::decode(). Patch attached - please review and maybe apply.