Subject: | Can't encode URI |
There is a test in encode/decode that make it return
undef if you try to pass a reference as the string
to process. This seems like a bad idea. It will for
instance prevent passing objects that do stringify
overloading.
$ perl -MURI -MEncode -le 'print encode("utf-8",
URI->new("http://foo"))'
$ perl -MURI -MEncode -le 'print encode("utf-8",
URI->new("http://foo") . "")'
http://foo
I want these both to return the same thing. Just stringify
whatever is passed in and process that.
A croak might be in order if RETURN_ON_ERR is passed in CHECK.