It unwarrantedly attempts to convert 8-bit characters
to UTF-8 without considering a declared MIME type.
See a bug report in CPAN:
http://rt.cpan.org/Public/Bug/Display.html?id=24835
Please stay away from libnet-1.20 until the problem
is fixed, or apply the following simple patch to one
of its files:
--- Net/Cmd.pm~ Fri Oct 27 13:08:07 2006
+++ Net/Cmd.pm Thu Feb 8 17:32:52 2007
@@ -22,6 +22,4 @@
}
-my $doUTF8 = eval { require utf8 };
-
$VERSION = "2.27";
@ISA = qw(Exporter);
@@ -395,6 +393,4 @@
my $arr = @_ == 1 && ref($_[0]) ? $_[0] : \@_;
my $line = join("" ,@$arr);
-
- utf8::encode($line) if $doUTF8;
return 0 unless defined(fileno($cmd));
Mark
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaVi...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
thank you very much for this patch.
Hi
applying this patch (copy-pasted from the post to a file) with:
cd /usr/lib/perl5/5.8.5
patch -p0 < /root/patchfile
gives me this message:
Hunk #1 FAILED at 22.
1 out of 1 hunk FAILED -- saving rejects to file Net/Cmd.pm.rej
missing header for unified diff at line 11 of patch
(Patch is indented 1 space.)
can't find file to patch at input line 11
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
| @ISA = qw(Exporter);
--------------------------
File to patch:
Am I doing something wrong here? (using CentOS 4.4)
Vahur
Soleved it by removing the lines manually from the Cmd.pm file. But I
still cannot see why the patch didn't work :(
Vahur