[M3devel] fyi Utime.i3 / UtimeExtra.i3

Jay jay.krell at cornell.edu
Sat Dec 27 20:48:46 CET 2008


fyi:
 

  I've been looking at Utime.i3.  
  One of the variations is whether or not struct_tm contains gmtoff and zone at the end.  
 

   C:\dev2\cm3.2\m3-mail\postcard\src\UtimeExtra.i3  
   C:\dev2\cm3.2\m3-mail\webcard\src\UtimeExtra.i3  
 

  are wrong on some systems.  
  They unconditionally add the two fields, and read from memory that doesn't necessarily have them.
 

  It is ok on FreeBSD, OpenBSD, NetBSD, modern Linux (maybe not Linux 1.x), Darwin.  
  It appears wrong on Cygwin, Solaris, HP-UX, Irix, OS/2 (did OS/2 ever work?).  
  I'll double check Solaris and Irix soon or next week. 
 
 
  I'll try to come up with a fix shortly.  
  It will surely involve deleting those two files.  
  And breaking any users of Utime.localtime and Utime.gmtime.
 
  
  - Jay


More information about the M3devel mailing list