[local-time-devel] Locating the zoneinfo repository
Attila Lendvai
attila.lendvai at gmail.com
Sat Oct 31 00:14:02 UTC 2009
>> 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.
>
> Okay, but maybe local-time can handle the case more consistently. See below
> about conditions.
ahh, i forgot to push a change that adds a key arg to the reread function.
anyways, i've amended that patch and pushed another take on the issue.
> Still a problem in ECL since (or *compile-file-truename* *load-truename*) =>
> NIL. Merging "../" fails before the client gets control. This works:
>
> diff -rN old-local-time/src/local-time.lisp
> new-local-time/src/local-time.lisp
> 201c201
> < (try (merge-pathnames "../" path)))
> ---
>> (when path (try (merge-pathnames "../" path))))
thanks, this is pushed too.
> I would prefer instead a condition/error to be generated when an invalid
> project home directory is used, with a descriptive report. Signalling late
> in the program should make local-time's behaviour more consistent and
> predictable. (It would even help in the case of an interactive session --
> suppose something in the filesystem changes after the parameter is
> initialized.)
i got rid of the warning and followed your basic idea, but that
condition is too much, i just added an (error "foo) call.
hope it'll resolve all the issues,
--
attila
More information about the local-time-devel
mailing list