Lonnie Abelbeck wrote: > On Mar 28, 2009, at 6:44 PM, Philip A. Prindeville wrote: > >>> (This should probably be in the DEV list, but we are already here) >>> >>> I took a look at the TZ list archive. The idea to include "newline- >>> enclosed POSIX-style time zone string at the end of the file when >>> possible" was introduced in mid-2005, I don't know when it was >>> official. (see below) >>> >>> There is some controversy using "tail -n 1" on a binary file (and >>> BusyBox does not support cat -v), but it appears to work in AstLinux. >>> >>> Lonnie >>> >>> ------------ >>> From ols...@lecserver.nci.nih.gov Thu Jun 30 10:59:52 2005 >>> Date: Thu, 30 Jun 2005 10:59:52 -0400 (EDT) >>> From: Arthur David Olson <ols...@lecserver.nci.nih.gov> >>> Subject: yet another try at 64-bit changes >>> >>> Below find the next try at 64-bit changes. >>> As before, zic writes a second instance of headers and data to time >>> zone files; >>> the second instance has eight-byte transition times to cover far- >>> future >>> (and far past) cases. Zic also puts a newline-enclosed POSIX-style >>> time zone >>> string at the end of the file when possible (or, when a zone can't be >>> represented using POSIX, puts a newline-enclode empty string at the >>> end of the >>> file). (Enclosing the string in newlines makes for meaningful output >>> from the >>> "tail -1" command applied to time zone files.) When a POSIX-style >>> string is >>> available, zic does *not* write 400 years worth of data. >>> >>> The files that don't have a POSIX string at the end are: >>> America/Godthab >>> America/Santiago >>> Antarctica/Palmer >>> Asia/Tehran >>> Asia/Jerusalem >>> Asia/Tel_Aviv >>> Chile/Continental >>> Chile/EasterIsland >>> Iran >>> Israel >>> Pacific/Easter >>> >>> >>> >> Yeah, I wasn't suggesting that we actually do use tail -1... that's >> not >> how the file was designed to be used. >> >> There is a way to dump out the /etc/localtime file and extract certain >> fields from it... I just don't remember what it is (and I don't think >> we include the tool that does this, alas). >> >> -Philip >> > > You might be thinking of zdump, but I don't think it can output the > newline-enclosed POSIX string. > > tail -n 1 works, are you against adding this feature if TZ_TIMEZONE is > undefined? > > Lonnie >
No, I'm against using /etc/TZ. period. Unless it says ":/etc/localtime" ... But there's the rub. I can't find who actually used /etc/localtime to prime tzset(). -Philip ------------------------------------------------------------------------------ _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.