Skip to content

Commit

Permalink
0.8.20.11:
Browse files Browse the repository at this point in the history
        * Fix bug, reported by David Tolpin on c.l.l: LOAD should bind
          *LOAD-PATHNAME* to the merged pathname.
  • Loading branch information
Alexey Dejneka committed Mar 9, 2005
1 parent e0b8742 commit a30cbc0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -20,6 +20,8 @@ changes in sbcl-0.8.21 (0.9alpha.1?) relative to sbcl-0.8.20:
the specializer is now possible.
* fixed bug: the MAKE-INSTANCE optimization is now correct in the
face of package deletion.
* fixed bug: LOAD should bind *LOAD-PATHNAME* to the merged
pathname. (reported by David Tolpin on c.l.l)
* contrib improvement: the SB-SIMPLE-STREAMS contrib now defines
STRING-SIMPLE-STREAM and FILE-SIMPLE-STREAM as subclasses of
STRING-STREAM and FILE-STREAM, respectively.
Expand Down
2 changes: 1 addition & 1 deletion src/code/target-load.lisp
Expand Up @@ -69,7 +69,7 @@
(return-from internal-load nil)))

(let ((*load-truename* truename)
(*load-pathname* pathname))
(*load-pathname* (merge-pathnames pathname)))
(case contents
(:source
(with-open-file (stream truename
Expand Down
15 changes: 15 additions & 0 deletions tests/load.impure.lisp
Expand Up @@ -53,4 +53,19 @@
(when tmp-fasl (delete-file tmp-fasl))
(delete-file *tmp-filename*))))

;;; As reported by David Tolpin *LOAD-PATHNAME* was not merged.
(progn
(defvar *saved-load-pathname*)
(with-open-file (s *tmp-filename*
:direction :output
:if-exists :supersede
:if-does-not-exist :create)
(print '(setq *saved-load-pathname* *load-pathname*) s))
(let (tmp-fasl)
(unwind-protect
(progn
(load *tmp-filename*)
(assert (equal (merge-pathnames *tmp-filename*) *saved-load-pathname*)))
(delete-file *tmp-filename*))))

(quit :unix-status 104)
2 changes: 1 addition & 1 deletion version.lisp-expr
Expand Up @@ -17,4 +17,4 @@
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
"0.8.20.10"
"0.8.20.11"

0 comments on commit a30cbc0

Please sign in to comment.