Skip to content

Conversation

@kbeuls
Copy link

@kbeuls kbeuls commented Feb 16, 2018

When decoding strings containing non base-char characters in Lispworks 7.1, the function string-stream-accumulator-add gave an error because the *accumulator* stream was initialised as containing base-chars, instead of characters.

(defparameter *output-stream* (make-string-output-stream))
(write-char #\’ *output-stream*)

This can be solved by setting the element-type explicitly to character when initializing the stream.

(defparameter *output-stream* (make-string-output-stream :element-type 'character))
(write-char #\’ *output-stream*)

…n init-string-stream-accumulator function for solving Lispworks 7.1 error.
@paulvaneecke
Copy link

This error also solved the problem for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants