[cl-ppcre-devel] Problem with pathnames

Edi Weitz edi at weitz.de
Wed Jan 12 15:39:56 UTC 2011


I made the change you proposed (see BKNR repository) but then
immediately reverted it again.  The problem is that the pathname is
only created so that it will be merged afterwards (see
with-output-to-source-file).  If you use NIL for the type slot, you
leave it "open" for MERGE-PATHNAMES to fill which is not what I want.
After reading the spec I agree with you, though, that :UNSPECIFIC
doesn't look right.  Do you have a better idea how to solve this?

Thanks,
Edi.


On Wed, Jan 12, 2011 at 4:16 PM, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> wrote:
> [I CC just in case the ECL mailing list provides me a better answer]
>
> In polishing the upcoming ECL release I discovered that there are two
> problems when trying to compile cl-unicode. One is due to a bug in ECL, the
> other one is due to what I believe an error in CL-UNICODE. More precisely,
> in build/dump.lisp I find
>
>   (with-output-to-source-file (out (make-pathname :name "derived-properties"
>                                                   :type :unspecific
>                                                   :directory '(:relative :up
> "test"))
>                                    :no-header-p t)
>
> As far as I know, :UNSPECIFIC is reserved for values that do not make sense
> for a filesystem, but in this particular case what happens is that the file
> does not have a file extension, not that extensions (types) do not exist at
> all.
>
> The consequence is that this lisp form creates an unprintable pathname (one
> which cannot be written "readably"), both in ECL and CLISP, and ECL
> righteously complains that this file can not be opened.
>
> I believe the appropriate line should be ":type nil", which works on SBCL,
> CLISP and ECL, AFAIK.
>
> Am I wrong?
>
> Juanjo
>
> P.S.: This is cl-unicode 0.1.1 distributed by quicklisp.
>
> --
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28006 (Spain)
> http://juanjose.garciaripoll.googlepages.com
>
> _______________________________________________
> cl-ppcre-devel site list
> cl-ppcre-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/cl-ppcre-devel
>




More information about the Cl-ppcre-devel mailing list