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

[PATCH] lib/vmsish.t GMT bug fix

Thread Next
From:
Craig A. Berry
Date:
March 25, 2003 20:53
Subject:
[PATCH] lib/vmsish.t GMT bug fix
Message ID:
3E81322A.3040508@mac.com
Since 5.8.0 everyone east of Greenwich has been getting test failures
with the "use vmsish qw(time)" tests in lib/vmsish.t. Somewhere along
the way I introduced a scoping bug in the test where it invokes the
pragma inside an eval (via test.pl:use_ok()), but since the pragma is
lexically scoped its influence does not propagate outward to the code
that expects it to be in effect. There were compensating errors that
caused this never to be noticed in timezones with a negative offset from
GMT.

I've a attached a patch that corrects the problem and there are reports
that it now works on both sides of Greenwich.






Thread Next


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