On Fri, May 29, 2009 at 12:01:41PM -0400, C. David Shaffer wrote:
David T. Lewis wrote:
Use TimeZoneDatabase. No plugin is required. http://wiki.squeak.org/squeak/1076
Latest source is always here: http://wiki.squeak.org/squeak/1076
Thanks Dave. I loaded the released version 1-2-5-dtl under Gentoo Linux I end up in an endless stream of warnings "should be at end of stream" during parsing of the time zone files. Example stack trace attached. Disabling the warning dialog gets me through to another warning "nil is not a valid abbreviation for a time zone". Stack trace attached. Proceeding through that the load completes but I don't think my time zones loaded properly:
TimeZoneDatabase grepFor: 'Detroit' ---> #()
I also tried New_York. I verified that these files are in my /usr/share/zoneinfo directory. I seem to recall going through this process before. Is there a patch?
Hi David,
For reasons that I do not understand, the New_York zoneinfo file from your Gentoo distribution is larger than I expected, and contains additional binary data following the time zone table data. My file loader checks for this, and throws up the warning that you are seeing. I don't know if this is some Gentoo-specific thing, or if there is some alternate file format that I am not aware of.
In any case, ignoring the additional data in the Gentoo zoneinfo files appears to have no ill effects. I have attached a patch that disables my syntax check, and that hopefully will enable you to load the zoneinfo files on your Gentoo system when you evaluate "TimeZoneDatabase initialize".
Please let me know if this works for you.
Dave