delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/01/03/04:54:58

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Mon, 3 Jan 2005 11:53:34 +0200 (EET)
From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
Sender: peuha AT sirppi DOT helsinki DOT fi
To: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: tzname comment in tests/libclink/check.cc (something for Esa?)
In-Reply-To: <200412311246.iBVCkgIM016365@speedy.ludd.ltu.se>
Message-ID: <Pine.OSF.4.58.0501031131350.36120@sirppi.helsinki.fi>
References: <200412311246 DOT iBVCkgIM016365 AT speedy DOT ludd DOT ltu DOT se>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 31 Dec 2004 ams AT ludd DOT ltu DOT se wrote:

> Hello.
>
> There's this interesting comment in tests/libclink/check.cc:
> /* Note: tzname is POSIX, but we list it here because it is a datum,
>    not a function, and we can't stub it.  ctime() sets tzname, and
>    ctime is ANSI and tzname is POSIX.  Sigh. */
>
> Couldn't this be corrected in the same way that we corrected environ
> pollution?

Yes, it probably could be.  OTOH, I don't see any compelling reason to
do so; any program that uses tzname is supposed to call tzset first, so
we could have tzset copy the values of tzname from an internal variable
(and ctime and other ANSI functions would only use and set this internal
variable).

-- 
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019