Allow non-simple strings in MAKE-ROD-XSTREAM, for the benefit of Drakma.
* xstream.lisp (MAKE-ROD-XSTREAM): Coerce non-simple arrays to simple-string.
This commit is contained in:
@ -337,6 +337,8 @@
|
|||||||
:name name))))
|
:name name))))
|
||||||
|
|
||||||
(defun make-rod-xstream (string &key name)
|
(defun make-rod-xstream (string &key name)
|
||||||
|
(unless (typep string 'simple-array)
|
||||||
|
(setf string (coerce string 'simple-string)))
|
||||||
;; XXX encoding is mis-handled by this kind of stream
|
;; XXX encoding is mis-handled by this kind of stream
|
||||||
(let ((n (length string)))
|
(let ((n (length string)))
|
||||||
(let ((buffer (make-array (1+ n) :element-type 'buffer-byte)))
|
(let ((buffer (make-array (1+ n) :element-type 'buffer-byte)))
|
||||||
|
|||||||
Reference in New Issue
Block a user