mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-07 06:47:00 +02:00
Fix looping over sbcl *external-formats*.
The internal represtation of the SBCL *external-formats* has changed to a new structure which is not an hash-table anymore.
This commit is contained in:
parent
3853c8996f
commit
e2418891a4
@ -232,8 +232,20 @@ in 2 bytes.
|
||||
#+ccl
|
||||
(parse-ccl-encodings-desc (with-output-to-string (*standard-output*)
|
||||
(ccl:describe-character-encodings)))
|
||||
#+sbcl
|
||||
(let ((result '()))
|
||||
#+sbcl
|
||||
(typecase sb-impl::*external-formats*
|
||||
(vector
|
||||
(loop :for encoding :across sb-impl::*external-formats*
|
||||
:when encoding
|
||||
:collect
|
||||
(mapcar (function string-upcase)
|
||||
(typecase encoding
|
||||
(sb-impl::external-format
|
||||
(slot-value encoding 'sb-impl::names))
|
||||
(list
|
||||
(slot-value (first encoding) 'sb-impl::names))))))
|
||||
(hash-table
|
||||
(let ((result '()))
|
||||
(maphash (lambda (name encoding)
|
||||
(declare (ignore name))
|
||||
(pushnew encoding result))
|
||||
@ -241,7 +253,7 @@ in 2 bytes.
|
||||
(mapcar (lambda (encoding)
|
||||
(mapcar (function string-upcase)
|
||||
(slot-value encoding 'sb-impl::names)))
|
||||
result))))
|
||||
result))))))
|
||||
(sort encoding-and-aliases #'string< :key #'car)))
|
||||
|
||||
(defun show-encodings ()
|
||||
|
Loading…
Reference in New Issue
Block a user