Missing clear-output operation

Bug #1753161 reported by Guillaume LE VAILLANT
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

When calling the clear-output function on a two-way-stream made from two Gray streams, I got the following error:

Unexpected Error: #<SB-KERNEL:CASE-FAILURE expected-type: (MEMBER :LISTEN :UNREAD :CLOSE :CLEAR-INPUT :FORCE-OUTPUT :FINISH-OUTPUT ..) datum: :CLEAR-OUTPUT>

:CLEAR-OUTPUT fell through ECASE expression.

Wanted one of (:LISTEN :UNREAD :CLOSE :CLEAR-INPUT :FORCE-OUTPUT :FINISH-OUTPUT:ELEMENT-TYPE :ELEMENT-MODE :STREAM-EXTERNAL-FORMAT :INTERACTIVE-P :LINE-LENGTH :CHARPOS :FILE-LENGTH:FILE-STRING-LENGTH :FILE-POSITION)...

The attached patch adds the missing clear-output operation to the stream-misc-dispatch function, which solves the issue.

Revision history for this message
Guillaume LE VAILLANT (guillaume-le-vaillant) wrote :
Stas Boukarev (stassats)
Changed in sbcl:
status: New → In Progress
Revision history for this message
Stas Boukarev (stassats) wrote :

59e0f86f1a31d6d76e42e8d384f9d9b2684b0ce9

Changed in sbcl:
status: In Progress → Fix Committed
Stas Boukarev (stassats)
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.