Hello all, I sent this mail to Michael a while ago, but he didn't find the time to look into the issue (yet), so I'm resending the mail to the list - I hope the attached test also makes it onto the list, otherwise, I'll remail that test in a separate message.
Please CC me on any replies, as I'm not (yet) subscribed to the list. Thanks, -max ----- Original Message ----- From: "Max Maischein" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003 9:35 PM Subject: Binmode bug in Test::Inline v0.15 > Hi Michael, > > I found a bug in Test::Inline v0.15 - it appears under Win32, but would also > appear under Unix : > > Any module using a tied filehandle (for example CGI.pm) will fail, because > the > "Catch" package in the created inline test file does not support the BINMODE > method. > Simply adding > sub BINMODE {}; > to line 23 in every generated file solves the problem. > > Here's an inline that exercises the behaviour (also attached as a separate > file corion-binmode.t to this mail) : > > use strict; > > =for example begin > BEGIN{binmode STDOUT}; > =for example end > > This is perl, v5.6.1 built for MSWin32-x86-multi-thread (a place where > binmode() is > common). > > -max (Corion on CPAN) >
corion-binmode.t
Description: Binary data