Missing clear-output operation

Bug #1753161 reported by Guillaume LE VAILLANT on 2018-03-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
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.

Stas Boukarev (stassats) on 2018-03-03
Changed in sbcl:
status: New → In Progress
Stas Boukarev (stassats) wrote :

59e0f86f1a31d6d76e42e8d384f9d9b2684b0ce9

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

Other bug subscribers