From:                   Aman  Thind <[EMAIL PROTECTED]>
> 5.8 is perfectly backward compatible and no exception has been thrown
> in my period of it's usage. I have recently upgraded from 5.6.1 to 5.8
> and my old scripts run perfecly fine. So any script that is good enuff
> for 5.6 is good enuff for 5.8

Well it's sad, but that's not true. There is a bug in 5.8 that causes 
all socket()s to be in text mode under Windows. Even if you binmode() 
them :-(

Which causes problems of course because each \n gets returned to \r\n 
so if the module/script sends CRLF to eg. a SMTP server, the server 
gets CRCRLF and gets confused.

I'll upload a new version of Mail::Sender shortly that solves this by

use constant PRE_5_8 => $[ < 5.008;
BEGIN {
        if (! PRE_5_8) {
                # fsck, the 5.8 is broken. The binmode() doesn't work for 
socket()s.
                require 'open.pm';
                'open'->import(OUT=>":raw:perlio");
        }
}
....
        binmode($s)
                if PRE_5_8;

(If anyone knows a better solution I'm all ears!)

But that will make everything binary :-(
.... in the file where it's used.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to