Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Commit [76f3e2] Maximize Restore History

1.0.27.18: Changes to ECHO-STREAMs

* Bugfix: PEEK-CHAR always popped the unread-stuff, leading to
spurious duplicate echos in some cases.

* Minor incompatible change: UNREAD-CHAR on an ECHO-STREAM now unreads
onto the echo-stream's input stream. This is unspecified in the
CLHS, but makes SBCL compatible with most implementations (AFAICT,
everybody but CMUCL).

* Minor incompatible change: echo-streams used to buffer arbitrarily
many characters in UNREAD-CHAR. Conforming programs can't have
relied on this, but non-conforming ones might have; users who need
the old CMUCL/SBCL behavior can do it easily and de-facto-portably
with Gray Streams.

* Possible bugfix that nobody cares about: ECHO-N-BIN (which
implements a path through READ-SEQUENCE) can never have worked after
an UNREAD-CHAR, because it tried to store characters into an octet
buffer.

Richard M Kreuter Richard M Kreuter 2009-04-22

changed src/code/stream.lisp
changed src/code/target-stream.lisp
changed tests/stream.pure.lisp
changed NEWS
changed version.lisp-expr
src/code/stream.lisp Diff Switch to side-by-side view
Loading...
src/code/target-stream.lisp Diff Switch to side-by-side view
Loading...
tests/stream.pure.lisp Diff Switch to side-by-side view
Loading...
NEWS Diff Switch to side-by-side view
Loading...
version.lisp-expr Diff Switch to side-by-side view
Loading...