This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PING^2] RFC [PATCH] BZ#1077902: New API gettimezone
- From: P J P <pj dot pandit at yahoo dot co dot in>
- To: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Wed, 30 Apr 2014 04:09:55 +0800 (SGT)
- Subject: Re: [PING^2] RFC [PATCH] BZ#1077902: New API gettimezone
- Authentication-results: sourceware.org; auth=none
- References: <1396499286 dot 85118 dot YahooMailNeo at web192405 dot mail dot sg3 dot yahoo dot com> <1397301884 dot 32837 dot YahooMailNeo at web192402 dot mail dot sg3 dot yahoo dot com> <534971E4 dot 6060001 at cs dot ucla dot edu> <53497633 dot 6060804 at redhat dot com> <1397324033 dot 69177 dot YahooMailNeo at web192403 dot mail dot sg3 dot yahoo dot com> <5349A4B0 dot 2070206 at redhat dot com> <1397375798 dot 36419 dot YahooMailNeo at web192401 dot mail dot sg3 dot yahoo dot com> <1397414803 dot 70882 dot YahooMailNeo at web192403 dot mail dot sg3 dot yahoo dot com> <534B8A9F dot 8030806 at redhat dot com> <1397469748 dot 42212 dot YahooMailNeo at web192405 dot mail dot sg3 dot yahoo dot com> <1398146221 dot 72442 dot YahooMailNeo at web192403 dot mail dot sg3 dot yahoo dot com> <1398755742 dot 94004 dot YahooMailNeo at web192405 dot mail dot sg3 dot yahoo dot com> <535F74EE dot 8010002 at redhat dot com> <1398775268 dot 92264 dot YahooMailNeo at web192405 dot mail dot sg3 dot yahoo dot com> <535FC11B dot 3000906 at cs dot ucla dot edu> <535FF1CD dot 1030601 at redhat dot com>
- Reply-to: P J P <pj dot pandit at yahoo dot co dot in>
> 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