https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7520

--- Comment #21 from Henrik Krohns <apa...@hege.li> ---
(In reply to jscovar91 from comment #19)
> Index: lib/Mail/SpamAssassin/HTML.pm
> ===================================================================
> --- lib/Mail/SpamAssassin/HTML.pm     (revision 1818345)
> +++ lib/Mail/SpamAssassin/HTML.pm     (working copy)
> @@ -253,10 +253,13 @@
>      warn "message: cannot set utf8_mode, module HTML::Parser is too old\n"
>        if !$self->{SA_character_semantics_input};
>    } else {
> -    $self->SUPER::utf8_mode($self->{SA_character_semantics_input} ? 0 : 1);
> +    my $utf8_enable =
> $self->SUPER::utf8_mode($self->{SA_character_semantics_input} ? 0 : 1);
>      dbg("message: HTML::Parser utf8_mode %s",
>          $self->SUPER::utf8_mode ? "on (assumed UTF-8 octets)"
>                                  : "off (default, assumed Unicode
> characters)");
> +    if (!$utf8_enable) {
> +     $text = decode('UTF-8', $text, Encode::FB_CROAK);
> +    }
>    }
>    $self->SUPER::parse($text);

Perhaps describe what this is trying to achieve? Text is already supposed to be
decoded.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to