[cl-ppcre-devel] Problem with pathnames

1 view
Skip to first unread message

Juan Jose Garcia-Ripoll

unread,
Aug 2, 2011, 4:41:50 PM8/2/11
to cl-ppcr...@common-lisp.net
I reported a related problem some time ago

However, instead of the values I supplied now cl-unicode is using :unspecific for the :type of a pathname.

(defun dump-derived-tests ()
  "Parses the Unicode data file \"DerivedCoreProperties.txt\" \(which
is not used in read.lisp) and uses it to create a file
\"derived-properties\" which will be used by CL-UNICODE-TEST."
  (with-output-to-source-file (out (make-pathname :name "derived-properties"
                                                  :type :unspecific
                                                  :directory '(:relative :up "test"))
                                   :no-header-p t)

This is not supported by ECL, which uses NIL to represent an unfilled value (absent therefore). From the Hyperspec

A conforming program must never unconditionally use a :unspecific as the value of a pathname component because such a value is not guaranteed to be permissible in all implementations.

Probably what you want to solve is the merge-pathnames above the code (in the macro), which might instead read

  `(let* ((directory (make-pathname :name nil :type nil :version nil :defaults *this-file*))
          (pathname (merge-pathnames ,relative-path directory))

Cheers,

Juanjo

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com

Edi Weitz

unread,
Aug 7, 2011, 7:44:38 AM8/7/11
to General interest list about cl-ppcre and cl-unicode
Hi Juanjo,

Thanks for the heads-up. Can you send a diff against the BKNR
repository? I'll review and apply it.

Thanks,
Edi.

> _______________________________________________
> cl-ppcre-devel site list
> cl-ppcr...@common-lisp.net
> http://common-lisp.net/mailman/listinfo/cl-ppcre-devel
>

_______________________________________________
cl-ppcre-devel site list
cl-ppcr...@common-lisp.net
http://common-lisp.net/mailman/listinfo/cl-ppcre-devel

Juan Jose Garcia-Ripoll

unread,
Aug 9, 2011, 5:12:45 AM8/9/11
to e...@agharta.de, General interest list about cl-ppcre and cl-unicode
I am sorry, I live behind a firewall and unblocking SVN is quite a hassle. Is it ok with the patch attached? It is against cl-unicode-0.1.1

juanjo
cl-unicode.patch

Juan Jose Garcia-Ripoll

unread,
Aug 9, 2011, 5:13:42 AM8/9/11
to e...@agharta.de, General interest list about cl-ppcre and cl-unicode
Sorry, wrong order of arguments to diff. Here goes the right one
cl-unicode.patch

Hans Hübner

unread,
Aug 9, 2011, 5:38:22 AM8/9/11
to General interest list about cl-ppcre and cl-unicode
You can access the SVN repository through http:

http://bknr.net/svn/trunk/thirdparty/cl-unicode/

-Hans

On Tue, Aug 9, 2011 at 11:13 AM, Juan Jose Garcia-Ripoll

Hans Hübner

unread,
Aug 9, 2011, 5:40:22 AM8/9/11
to General interest list about cl-ppcre and cl-unicode
You can access the SVN repository through http:

http://bknr.net/svn/trunk/thirdparty/cl-unicode/

-Hans

On Tue, Aug 9, 2011 at 11:13 AM, Juan Jose Garcia-Ripoll

Edi Weitz

unread,
Aug 9, 2011, 9:31:28 AM8/9/11
to Juan Jose Garcia-Ripoll, General interest list about cl-ppcre and cl-unicode
That should do, thanks. I'll take care of it in the next days.

Edi.


On Tue, Aug 9, 2011 at 11:12 AM, Juan Jose Garcia-Ripoll

Edi Weitz

unread,
Aug 31, 2011, 8:08:36 AM8/31/11
to Juan Jose Garcia-Ripoll, General interest list about cl-ppcre and cl-unicode
I was going to apply your patch this morning, but I just realized this
had already been done eight months ago... :)

http://bknr.net/trac/changeset/4626/trunk/thirdparty/cl-unicode

Cheers,
Edi.


On Tue, Aug 9, 2011 at 11:13 AM, Juan Jose Garcia-Ripoll

Juan Jose Garcia-Ripoll

unread,
Aug 31, 2011, 8:14:58 AM8/31/11
to Edi Weitz, General interest list about cl-ppcre and cl-unicode
Hmm, then why didn't this propagate to quicklisp's release? I bet they try to keep on the edge of various libraries and eight months is a long time.

Juanjo
Reply all
Reply to author
Forward
0 new messages