[PING^2] RFC [PATCH] BZ#1077902: New API gettimezone
Carlos O'Donell
carlos@redhat.com
Tue Apr 29 18:39:00 GMT 2014
On 04/29/2014 11:11 AM, Paul Eggert wrote:
> P J P wrote:
>> the TZ string at the end of a zone file does work well
>
> Not really. Sometimes it works, but sometimes it's completely wrong.
>
>> for cases wherein the TZ string is absent from a zone file, fall-back to UTC is well reasonable too
>
> If *that* is good enough, then there's no need to change the API. Just set TZ to "UTC0". Done. Which is what apps have done for decades.
>
> I'm afraid I still have the impression that the proposed cure is worse than the disease.
That may be the case, but at least we had the discussion.
I'm worried only by PJP's assertion that you can't trust the chroot to have the zone file you have yourself.
In that case nothing short of stuffing the zone *into* TZ will help which I'd like to avoid.
Unfortunately all of this complicates the API.
I'll wait and see what PJP comes up with for the tzalloc solution to solve two birds with one stone.
Cheers,
Carlos.
More information about the Libc-alpha
mailing list