This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PING^2] RFC [PATCH] BZ#1077902: New API gettimezone


On 04/29/2014 03:15 AM, P J P wrote:
> Ping!
> 
> WRT -> https://bugzilla.redhat.com/show_bug.cgi?id=1077902#c9
> 
> - What modifications would we need to the currently submitted patch?
> - Or if we are to go for modifications to tzalloc() routine(s), how do we go about it?
> 
> Just checking, for I'm unsure about the details. Any comments/suggestions shall be helpful and welcome.

The current implementation isn't robust in that the POSIX TZ at the end
of the zone file might not be enough to define the timezone completely.
You need to set TZ to a file e.g. TZ=Country/City where possible and
assume in your use-case that the chroot has an updated set of zones
installed that match. You want to use the TZ file format because it allows
a correct implementation by using all the data in the zone files. The POSIX
TZ is insufficient to be correct all the time.

Can you sketch out the tzalloc-style API and propse it?

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]