[local-time-devel] Locating the zoneinfo repository
Attila Lendvai
attila.lendvai at gmail.com
Fri Oct 30 09:57:55 UTC 2009
thanks for the patch and description!
i did not apply the patch as-is though (e.g. defining methods on asdf
classes), but i pushed something along the lines of your patch.
> * When LOAD-ing local-time (not via ASDF) while ASDF is incidentally
> loaded into the image, local-time will try to locate the ASDF package path
> anyway, ignoring *load-pathname*. The result may be NIL, yielding an error
> in constructing the pathname.
fixed
> * When LOAD-ing local-time (not via ASDF) while there is no ASDF in the
> image, *project-home-directory* will default to the directory of
> *load-pathname*, which in the current source tree layout is src/ -- whereas
> the repository is under src/../ -- eventually causing an error in TRUENAME.
fixed
> * In a saved image that includes local-time (via ASDF) and ASDF itself,
> the value of *project-home-directory* may be set at the time of saving.[1]
> If the image is deployed in a different environment, it may not find the
> repository, eventually causing an error in TRUENAME.
that's the usual issue which needs to be taken care of the one who
saves the image. if static timezone files are ok, then read them
before saving. if they are not, then no smartness is enough to handle
the issue without the saver's help.
i've added a key arg to reread-timezone-repository to help dealing
with the issue (although it's still not exported for now).
> * In a saved image that includes local-time but excludes ASDF, the package
> path cannot be found, and *load-pathname* may be NIL.[2] This yields an
> error in constructing the pathname, before the client has a chance to do
> anything about it.
should be fixed
please get the latest from darcs and report back with any issues that remain!
thanks,
--
attila
More information about the local-time-devel
mailing list