Skip to content

Commit

Permalink
* src/code/target-package.lisp (intern*): yet another take on
Browse files Browse the repository at this point in the history
base-string conversion -- sb-kernel:extended-char-p seems to
be broken (everywhere); now using base-char-p instead.
  • Loading branch information
akovalenko committed Aug 12, 2011
1 parent 02ba414 commit d225173
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/code/target-package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,12 @@ implementation it is ~S." *default-package-use-list*)
(values symbol where)
(let ((symbol-name
(if (or (base-string-p name) ; already a base-string
(find-if 'extended-char-p name
:end length)) ; /or/ can't be base-stringified
; or can't become a base-string at all
(position-if-not 'base-char-p name
:end length))
(subseq name 0 length)
(replace (make-string length :element-type 'base-char) name))))
(replace (make-string (or length (length name))
:element-type 'base-char) name))))
(with-single-package-locked-error
(:package package "interning ~A" symbol-name)
(let ((symbol (make-symbol symbol-name)))
Expand Down

0 comments on commit d225173

Please sign in to comment.