[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs |
Date: |
06 Jun 2003 21:49:31 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Jim Meyering <address@hidden> writes:
> Can anyone here compile/run the following program to see if it
> exits nonzero on a Solaris 2.5 system?
I no longer have access to 2.5, but I do have 2.5.1 and 2.6, and have
verified that they have the bug. But I now see that I gave you a
oversimplified version of the problem, as you have to have a tzset
that does real work. Here's a test case that illustrates the bug; it
fails on Solaris 2.5.1 and 2.6. I'm reluctant to use memcmp in the
test case since I worry it might mishandle tm_* members other than the
ones required by the standard.
#include <time.h>
#include <stdlib.h>
int
main ()
{
time_t t1 = 853958121;
struct tm *p, s;
putenv ("TZ=GMT0");
p = localtime (&t1);
s = *p;
putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
tzset ();
exit (p->tm_year != s.tm_year
|| p->tm_mon != s.tm_mon
|| p->tm_mday != s.tm_mday
|| p->tm_hour != s.tm_hour
|| p->tm_min != s.tm_min
|| p->tm_sec != s.tm_sec);
}
- [Bug-gnulib] strftime merge from Emacs, Dave Love, 2003/06/04
- Re: [Bug-gnulib] strftime merge from Emacs, Jim Meyering, 2003/06/05
- Re: [Bug-gnulib] strftime merge from Emacs, Paul Eggert, 2003/06/05
- Re: [Bug-gnulib] strftime merge from Emacs, Dave Love, 2003/06/05
- Re: [Bug-gnulib] strftime merge from Emacs, Jim Meyering, 2003/06/05
- Re: [Bug-gnulib] strftime merge from Emacs, Paul Eggert, 2003/06/05
- [Bug-gnulib] access to Solaris2.5 system? [Re: strftime merge from Emacs, Jim Meyering, 2003/06/06
- [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs,
Paul Eggert <=
- Re: [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs, Jim Meyering, 2003/06/07
- Re: [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs, Paul Eggert, 2003/06/09
- Re: [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs, Jim Meyering, 2003/06/09
- Re: [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs, Jim Meyering, 2003/06/09
- Re: [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs, Paul Eggert, 2003/06/09
- Re: [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs, Jim Meyering, 2003/06/09
- Re: [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs, Paul Eggert, 2003/06/09
- Re: [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs, Jim Meyering, 2003/06/09
- Re: [Bug-gnulib] strftime merge from Emacs, Dave Love, 2003/06/06