string-output-stream improvements
commit1069e99c06139a2a4d70663c27d40f72340290bd
authorDouglas Katzman <dougk@google.com>
Mon, 15 May 2017 15:33:35 +0000 (15 11:33 -0400)
committerDouglas Katzman <dougk@google.com>
Mon, 15 May 2017 15:33:35 +0000 (15 11:33 -0400)
treeb49d9c39b0afbfee659f7e1de3595d6359556ac1
parentc0140cf3dc719cbf921d5642f6b79ab17df7a7be
string-output-stream improvements

- Avoid an extraneous type check in %MAKE-STRING-OUTPUT-STREAM.

- Test in WRITE-{CHAR,STRING} that the characters written are of the
  stream's element-type rather than failing in GET-OUTPUT-STREAM-STRING.

- {PRINx,WRITE}-TO-STRING and (FORMAT NIL ...) may return a base-string
  depending on what was placed into the string. Although the spec says that
  "with-output-from-string [sic] produces a stream that accepts characters
  and returns a string of the indicated element-type" it does not constrain
  all uses of string output streams to return a string whose element-type
  is the same as the stream element type.
NEWS
src/code/early-extensions.lisp
src/code/stream.lisp
src/code/target-package.lisp
src/compiler/generic/early-vm.lisp
src/compiler/srctran.lisp
tests/stream.impure-cload.lisp