From: Paul Eggert <eggert@twinsun.com> Subject: Re: c-common.c Date: Mon, 19 Aug 1996 19:42:12 -0700
Does c-common.c and/or the strftime in version 2.0 of glibc address these points [about ISO 8601 week notation]?
glibc 2.0 strftime doesn't. I am preparing a fix along the lines of the tz strftime. The fix will also make GNU strftime comply with Posix.2 section 4.15.4, and fix a few other bugs that I've discovered by code inspection (e.g. sometimes it returns 0 when it shouldn't, and it assumes 32-bit time_t's in a place or two).
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). If think %W is the representation Jim van Zandt asked for. -- Uli --------------. drepper@cygnus.com ,-. Rubensstrasse 5 Ulrich Drepper \ ,--------------------' \ 76149 Karlsruhe/Germany Cygnus Support `--' drepper@gnu.ai.mit.edu `------------------------
Date: Tue, 20 Aug 1996 11:51:28 +0200 From: Ulrich Drepper <drepper@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.
participants (2)
-
Paul Eggert -
Ulrich Drepper