[PING^2] RFC [PATCH] BZ#1077902: New API gettimezone
P J P
pj.pandit@yahoo.co.in
Tue Apr 29 20:10:00 GMT 2014
> On Wednesday, 30 April 2014 12:09 AM, Carlos O'Donell wrote:
> I'm worried only by PJP's assertion that you can't trust the chroot
> to have the zone file you have yourself.
I tried copying time zone file to /etc/localtime under chroot(2) directory, it did not work. Besides, it's an added configuration that user has to do and ensure that it is correct. That is not a good solution IMO.
> In that case nothing short of stuffing the zone *into* TZ will help which
The second form of TZ syntax(TZ="NZST-12:00:00NZDT-13:00:00,M10.1.0,M3.3.0") is a good option. Many applications use it and depend on it. If its handling is buggy, the least we could do is fix it.
> Unfortunately all of this complicates the API.
True. I'm not suggesting that we stuff the zone file contents into TZ variable.
> I'll wait and see what PJP comes up with for the tzalloc solution to solve
Sure! But if we agree to not stuff zone file contents into TZ variable, then the only option is to use the TZ string at the end of the zone files, no?
Thank you.
---
Regards
-Prasad
http://feedmug.com
More information about the Libc-alpha
mailing list