Paul Eggert eggert at twinsun.com
Tue Aug 20 17:03:02 UTC 1996

   Date: Tue, 20 Aug 1996 11:51:28 +0200
   From: Ulrich Drepper <drepper at myware.rz.uni-karlsruhe.de>

   Paul, you will correct me, but a few weeks ago you tested the "week"
   code in strftime and you hopefully saw that I have no %U, %V, and %W
   implemented (all three kinds of week representation from XPG4 and
   therefore ISO 8601).

Yes, I tested the GNU libc strftime against the Solaris 2.5.1
strftime, and those formats matched exactly.  However, since then I've
learned that the Solaris 2.5.1 strftime is not Posix.2-compliant (at
least, if you use strftime to implement the `date' command in the
usual way); instead, it is XPG4 compliant.  The tz strftime has a
compile-time option to choose Posix.2 or XPG4 behavior; Posix.2 is the
default (which I believe is the right thing to do).

I hacked on GNU libc strftime and found several bugs that I hadn't
noticed before.  I'll send in patches eventually, but they'll be
nontrivial and they could well introduce bugs.  If you're about to
ship a new GNU libc, I'd ship the old strftime for now.

More information about the tz mailing list