Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character type *accumulator* stream #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants