perl-unicode

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

2004-12-16 12:30:11
Radoslaw Zielinski <radek(_at_)karnet(_dot_)pl> 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

<Prev in Thread] Current Thread [Next in Thread>