Greg Troxel <[EMAIL PROTECTED]> writes:
>
> I didn't find C99 specs for strftime, so I don't know if programs are
> required to set tm_zone before calling strftime.

The bit about %Z is

         %Z  is   replaced  by  the  locale's  time  zone  name  or
             abbreviation, or by no characters if no time  zone  is
             determinable.  [tm_isdst]

which I suppose is because struct tm is speced without tm_zone.

> So, I respectfully suggest that the test is demanding more than one
> can rightfully conclude from the documentation.

You'd think a system with tm_zone should use it, but yes no sense
demanding what doesn't work.

> Perhaps libguile/strftime.c needs to not assume that strftime(3) will examine
> fields not specified by the standard, or perhaps that Scheme strftime
> should define what it does more precisely.  A problem here is that
> guile uses a structure which is bigger than C89 says.

Since we initialize tm_zone if it exists we should be safe, but a note
in the docs about what guile tm:zone might or might not do could be in
order.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to