sb-simple-streams clobbers OPEN's type incompatibly

Bug #2008811 reported by Richard M Kreuter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

The DEFKNOWN for OPEN in contrib/sb-simple-streams/fndb.lisp clobbers the default one, and restricts EXTERNAL-FORMAT to KEYWORD. (It looks like this has "always" been a bug since cons-typed external-format arguments came along.)

Patch attached; it updates the sb-simple-streams DEFKNOWN to extend the options of the default one, and adds comments in src/compiler/fndb.lisp at each DEFKNOWN that sb-simple-streams overwrites.

Revision history for this message
Richard M Kreuter (kreuter) wrote :
Revision history for this message
Douglas Katzman (dougk) wrote :

I think I'd prefer OPEN not to do the clobbering, because we've already given it the :CLASS and possibly :OVERLAPPED keyword. And it is sufficiently complicated that one defknown is better than two. The others are less worrisome to clobber. I'll revise your patch a little and commit it

Revision history for this message
Douglas Katzman (dougk) wrote :

Hmm, is it an accident that the defknown in simple-streams also adds &ALLOW-OTHER-KEYS?
i.e. does the simple-streams protocol allow you pass random k/v pairs to OPEN?
Maybe it is better to not make that the default because allowing slop by default is not good.

Douglas Katzman (dougk)
Changed in sbcl:
status: New → Fix Committed
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.