Re: "Undocumented feature" of Encode::{en,de}code()

[email protected] (Gisle Aas)
Newsgroups perl.unicode
Message-ID <[email protected]>
Radoslaw Zielinski <[email protected]> writes:

> What's the point of lines 151 and 167 in Encode.pm?  Respectively:
> 
>     # sub encode
>     $_[1] = $string if $check;
> 
>     # sub decode
>     $_[1] = $octets if $check;
> 
> I really can't see a point in overwriting the input value...  Why only
> "if $check"?

This problem is fixed in Encode-2.0901 by the patch found at
<http://rt.cpan.org/NoAuth/Bug.html?id=8736>.

Regards,
Gisle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.