You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2005/05/26 23:22:57 UTC

svn commit: r178692 - /spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm

Author: jm
Date: Thu May 26 14:22:56 2005
New Revision: 178692

URL: http://svn.apache.org/viewcvs?rev=178692&view=rev
Log:
ignore HTML::Parser UTF-32 warnings, too

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm?rev=178692&r1=178691&r2=178692&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm Thu May 26 14:22:56 2005
@@ -272,10 +272,10 @@
   # ALWAYS pack it into byte-representation, even if we're using 'use bytes',
   # since the HTML::Parser object may use Unicode internally. (bug 1417,
   # maybe).  Also, ignore stupid warning that can't be suppressed: 'Parsing of
-  # undecoded UTF-8 will give garbage when decoding entities at ..'
+  # undecoded UTF-8 will give garbage when decoding entities at ..' (bug 4046)
   {
     local $SIG{__WARN__} = sub {
-      warn @_ unless (defined $_[0] && $_[0] =~ /^Parsing of undecoded UTF-8/);
+      warn @_ unless (defined $_[0] && $_[0] =~ /^Parsing of undecoded UTF-/);
     };
 
     $self->SUPER::parse(pack('C0A*', $text));