[Rt-devel] [BUG] OriginalContent can return string with utf8
flag on
Ruslan U. Zakirov
Ruslan.Zakirov at acronis.com
Tue Oct 12 06:40:02 EDT 2004
Ruslan U. Zakirov wrote:
> Thing that RT shouldn't use at all is Encode::from_to because of absence
> of CHECK argument. Encode uses default 0.
>
> perldoc Encode:
> If CHECK is 0, (en|de)code will put a substitution character in place of
> a malformed character.
>
[snip]
> Codepath in RT that trigger this bug:
> sub RT::I18N::SetMIMEEntityToEncoding {
> ...
> eval {
...
> Encode::from_to( $lines[$_], $charset => $enc ) for ( 0 ..
> $#lines );
> };
> ...
Ahh, and for your info Encode::from_to never fails. Eval context is useless.
More information about the Rt-devel
mailing list