go ahead... be a heretic | |
PerlMonks |
[Explained] Platform-dependent behavior observed in POSIX::strftimeby Narveson (Chaplain) |
on Aug 25, 2010 at 15:59 UTC ( [id://857235]=perlquestion: print w/replies, xml ) | Need Help?? |
Narveson has asked for the wisdom of the Perl Monks concerning the following question: Update: Thanks, BrowserUK and ikegami, for the Perl wisdom. My team is migrating from Windows Server 2003 to Windows Server 2008. We run the same ActiveState build of Perl 5.8.9 in both operating systems (verified using perl -V). Here is a transcript from the old server. Note the incorrect format string:
Here is the same little test run on the new server:
We had a program with this incorrect format string that nevertheless ran as intended on the old server, but of course it misbehaved badly on the new server. Isn't POSIX supposed to give platform-independent results? If it is argued that the test suites for POSIX only cover valid input, so with bad input all bets are off - then shouldn't POSIX::strftime blow up when it is given a malformed format string?
Back to
Seekers of Perl Wisdom
|
|