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 [email protected] Thu Jun 30 10:59:52 2005 >> Date: Thu, 30 Jun 2005 10:59:52 -0400 (EDT) >> From: Arthur David Olson <[email protected]> >> 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 ------------------------------------------------------------------------------ _______________________________________________ Astlinux-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [email protected].
