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

[PATCH] [perl #8253] clarity on win32 (gm|local)time errors

Thread Next
From:
Casey West
Date:
May 9, 2003 03:50
Subject:
[PATCH] [perl #8253] clarity on win32 (gm|local)time errors
Message ID:
20030509105536.GC49820@geeknest.com
http://rt.perl.org/rt2/Ticket/Display.html?id=8253

Ok.  With the help of Sean Burke I've managed to come up with some
sort of reasonable text for perlport as the requestor ... requested.
The patch is below, but this is another one of those odd areas for
me.  I can't decide if we should document that it's broken, or if it
should be fixed.  You decide. :-)

Having said that, I would like to admit that I can't begin to fathom
the problem here.  Also, I'm not sure if my assumption on drive usage
is correct or if it should really say 'and you are running perl from
any drive but C:'.  Please advise.

  Casey West

-- 
Shooting yourself in the foot with C 
You shoot yourself in the foot. 

--- perl-current.orig/pod/perlport.pod  Thu Apr 10 01:48:00 2003
+++ perl-current/pod/perlport.pod       Fri May  9 06:30:04 2003
@@ -600,6 +600,11 @@
 some large number.  C<$offset> can then be added to a Unix time value
 to get what should be the proper value on any system.
 
+On Windows, if you pass a negative value to C<gmtime> or C<localtime>
+and you are running perl from a drive other than the one it was
+installed on, these functions will return C<undef> in scalar context
+and an empty list in list context.
+
 =head2 Character sets and character encoding
 
 Assume very little about character sets.

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