develooper Front page | perl.perl5.porters | Postings from May 2003

Tkmail UTF-8 bug s/// and UTF-8

From:
Nick Ing-Simmons
Date:
May 10, 2003 13:12
Subject:
Tkmail UTF-8 bug s/// and UTF-8
Message ID:
20030510201210.2454.3@bactrian.ni-s.u-net.com

There was a bug report about s/// on UTF-8 data recently. It seems this may be
one of snags with encoding-aware tkmail. I just got a pile of:

Malformed UTF-8 character (unexpected non-continuation byte 0xf2, immediately
after start byte 0xfd) in substitution (s///) at
/tools/perls/lib/5.8.0/Mail/Header.pm line 109.

That line is: 

$_[0] =~ s/\s*[\r\n]+\s*/ /og; # Compress any white space around a newline

The UTF-8 in question is coming from Encoding::???? decode,
so should be okay. I have saved the raw mail and will try and track 
it down...

--
Nick Ing-Simmons http://www.ni-s.u-net.com/





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About