guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1.6.8 release candidate 0 available for testing.


From: Kevin Ryde
Subject: Re: 1.6.8 release candidate 0 available for testing.
Date: Wed, 19 Oct 2005 11:34:12 +1000
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Greg Troxel <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]