You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2019/12/24 15:06:41 UTC

[Bug 7780] New: Parsing of undecoded UTF-16 at /usr/share/perl5/Mail/SpamAssassin/HTML.pm line 262.

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

            Bug ID: 7780
           Summary: Parsing of undecoded UTF-16 at
                    /usr/share/perl5/Mail/SpamAssassin/HTML.pm line 262.
           Product: Spamassassin
           Version: 3.4.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Learner
          Assignee: dev@spamassassin.apache.org
          Reporter: spamassassin@aitchison.me.uk
  Target Milestone: Undefined

Created attachment 5680
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5680&action=edit
Email which triggers the error

When I run
   sa-learn --spam --mbox billing-utf16.eml
the attached email file reports:
Parsing of undecoded UTF-16 at /usr/share/perl5/Mail/SpamAssassin/HTML.pm line
262.
Learned tokens from 0 message(s) (1 message(s) examined)

Ubuntu 19.10 eoan
SpamAssassin version 3.4.2
  running on Perl version 5.28.1



May be a duplicate of https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7453
but the "attachment.cgi?..." examples there produce the UTF-16 error with
   spamassassin filename
and 
    sa-learn --spam filename
but not with
   sa-learn --spam --mbox filename
or
   spamassassin --mbox filename

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

[Bug 7780] Parsing of undecoded UTF-16 at /usr/share/perl5/Mail/SpamAssassin/HTML.pm line 262.

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7780

Sidney Markowitz <si...@sidney.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
                 CC|                            |sidney@sidney.com
             Status|REOPENED                    |RESOLVED

--- Comment #3 from Sidney Markowitz <si...@sidney.com> ---
The test case with -D info reproduces the problem in 3.4.4 but not in trunk
(4.0.0). Closing this as worksforme.

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

[Bug 7780] Parsing of undecoded UTF-16 at /usr/share/perl5/Mail/SpamAssassin/HTML.pm line 262.

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7780

Andrew Aitchison <sp...@aitchison.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
                 CC|                            |spamassassin@aitchison.me.u
                   |                            |k

--- Comment #1 from Andrew Aitchison <sp...@aitchison.me.uk> ---
Copying SpamAssassin/HTML.pm from 3.4.3 to the 3.4.2 installation tree fixes
the bug, so it appears to be fixed in 3.4.3

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

[Bug 7780] Parsing of undecoded UTF-16 at /usr/share/perl5/Mail/SpamAssassin/HTML.pm line 262.

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7780

Henrik Krohns <ap...@hege.li> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Learner                     |Libraries
            Version|3.4.2                       |3.4.3
             Status|RESOLVED                    |REOPENED
           Hardware|PC                          |All
                 CC|                            |apache@hege.li
                 OS|Linux                       |All
         Resolution|FIXED                       |---

--- Comment #2 from Henrik Krohns <ap...@hege.li> ---
3.4.3 is simply turning all HTML::Parser warnings to info() messages, so it's
only hidden in this case.

The HTML part starts with valid UTF-16 BOM and it's something HTML::Parser
can't parse.

Parsing of undecoded UTF-16
    (W) The parser found the Unicode UTF-16 BOM signature at the start of the
document. The result of parsing will likely be garbage.

Not sure if SA is supposed to handle this better, leaving open to check.

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