Compare & contrast: Solaris:
% uname -a SunOS tsunami 5.7 Generic_106541-04 sun4u sparc SUNW,Ultra-4 % cat posixtest.pl #!/usr/bin/perl -w use strict; use POSIX qw(strftime); my $fmt = '%Z'; my @now = localtime(); my $posix = strftime($fmt, @now); my $sys = `date '+%Z'`; chomp $sys; print "POSIX timezone tag seems broken:\n" unless $posix eq $sys; print "System date command thinks the timezone is $sys.\n"; print "POSIX thinks the timezone is $posix.\n"; % ./posixtest.pl System date command thinks the timezone is CST. POSIX thinks the timezone is CST. % MacOSX 10.1.2 % uname -a Darwin localhost 5.2 Darwin Kernel Version 5.2: Fri Dec 7 21:39:35 PST 2001; root:xnu/xnu-201.14.obj~1/RELEASE_PPC Power Macintosh powerpc % cat posixtest.pl #!/usr/bin/perl -w use strict; use POSIX qw(strftime); my $fmt = '%Z'; my @now = localtime(); my $posix = strftime($fmt, @now); my $sys = `date '+%Z'`; chomp $sys; print "POSIX timezone tag seems broken:\n" unless $posix eq $sys; print "System date command thinks the timezone is $sys.\n"; print "POSIX thinks the timezone is $posix.\n"; % ./posixtest.pl POSIX timezone tag seems broken: System date command thinks the timezone is EST. POSIX thinks the timezone is B???q?2X. % Is this something messed up on my installation (I don't remember changing anything) or a bug in the POSIX library on MacOSX? -- Chris Devers "Okay, Gene... so, -1 x -1 should equal what?" "A South American!" [....] "no human can understand the Timecube" and Gene responded without missing a beat "Yeah. I'm not human."