This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: localtime_r not returning local time
- From: "Gerrit P. Haase" <freeweb at nyckelpiga dot de>
- To: Yitzchak Scott-Thoennes <sthoenna at efn dot org>
- Cc: cygwin at cygwin dot com
- Date: Fri, 13 Feb 2004 12:40:12 +0100
- Subject: Re: localtime_r not returning local time
- Organization: Esse keine toten Tiere
- References: <BAY12-DAV65cuwGVLlR00032b73@hotmail.com> <20040212224445.GA3844@efn.org>
- Reply-to: "Gerrit P. Haase" <freeweb at nyckelpiga dot de>
Yitzchak wrote:
> On Thu, Feb 12, 2004 at 01:10:03PM -0800, Rafael Kitover wrote:
>> Would it be a lot of overhead to have something like tzset be called in the
>> bootstrap code for launching Cygwin programs? Or maybe just have a DLL global
>> default, based on windows time zone, and just allow processes to reset it for
>> themselves (and any children.)
> Either would be better than nothing. I'm very curious to know what
> various flavors of unix do. As I said, my reading of susv3 is that TZ
> should be checked with every call to localtime_r().
If tzset() should be called in localtime_r() it is a bug in newlib and
should be included there.
Gerrit
--
=^..^= http://nyckelpiga.de/donate.html
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/