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 Sender: peuha AT sirppi DOT helsinki DOT fi To: DJGPP-WORKERS Subject: Re: tzname comment in tests/libclink/check.cc (something for Esa?) In-Reply-To: <200412311246.iBVCkgIM016365@speedy.ludd.ltu.se> Message-ID: References: <200412311246 DOT iBVCkgIM016365 AT speedy DOT ludd DOT ltu DOT se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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/