OSDN Git Service

Fix 2 bugs in strftime related to glibc struct tm extensions.
authorManuel Novoa III <mjn3@codepoet.org>
Mon, 25 Jul 2005 03:50:55 +0000 (03:50 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Mon, 25 Jul 2005 03:50:55 +0000 (03:50 -0000)
commitae51419546a4a8c98d9379d4d9cd6b25c79f2df4
treefa1d69ff67c14811753d59300ce329fb4188666b
parent47167cdc5d0ef7fbbb1a0c65934e0fa8acb89833
Fix 2 bugs in strftime related to glibc struct tm extensions.
   1) Need to negate tm_gmtoff field value when used. (bug 336).
   2) Deal with NULL ptr case for tm_zone field, which was causing
      segfaults in both the NIST/PCTS tests and the Python 2.4.1
      self-test suite.
      NOTE: We set uninitialized timezone names to "???", and this
      differs (intentionally) from glibc's behavior.
libc/misc/time/time.c