bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge f


From: Jim Meyering
Subject: Re: [Bug-gnulib] Re: access to Solaris2.5 system? [Re: strftime merge from Emacs
Date: Mon, 09 Jun 2003 08:41:14 +0200

Paul Eggert <address@hidden> wrote:
> Jim Meyering <address@hidden> writes:
>
>> What do you think about using a tzset wrapper/replacement
>> that does *not* clobber localtime's buffer on losing systems?
>
> I'd go along with that if it's possible, but I don't see how it'd be
> possible.  The only way to not clobber localtime's buffer is to copy
> it before calling tzset.  But the only way to find out the address of
> localtime's buffer is to call localtime -- which has the side effect
> of clobbering localtime's buffer.

Hi Paul,

gettimeofday had a similar problem.
The trick in that case, was to use a wrapper for
both localtime and gettimeofday.
Here, we'd use a wrapper for tzset and localtime.

The only nit is that on systems with the losing tzset,
we'll also compile (but not use) rpl_gettimeofday.
It's not worth worrying about, imho.

Jim




reply via email to

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