Raymond Toy pushed to branch issue-140-stream-element-type-two-way-stream at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/code/stream.lisp
    ... ... @@ -296,7 +296,10 @@
    296 296
           (fd-stream (fd-stream-external-format stream))
    
    297 297
           (broadcast-stream
    
    298 298
            ;; See http://www.lispworks.com/documentation/HyperSpec/Body/t_broadc.htm
    
    299
    -       :default)
    
    299
    +       (let ((components (broadcast-stream-streams stream)))
    
    300
    +	 (if (null components)
    
    301
    +	     :default
    
    302
    +	     (stream-external-format (car (last components))))))
    
    300 303
           (synonym-stream
    
    301 304
            ;; Not defined by CLHS.  What should happen if
    
    302 305
            ;; (synonym-stream-symbol stream) is unbound?