X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ffd-stream.lisp;h=771cd10e7c2cfbaeea272a13c5b6a1bf93900a5a;hb=8eee0d3a30bf39d9f201acff28c92059fe6c3e4e;hp=de635c70fec0b27b77db36189f5d3dbf24b2148a;hpb=5d5894082c39ca44da75d38859d669c7b2108f6a;p=sbcl.git diff --git a/src/code/fd-stream.lisp b/src/code/fd-stream.lisp index de635c7..771cd10 100644 --- a/src/code/fd-stream.lisp +++ b/src/code/fd-stream.lisp @@ -418,12 +418,14 @@ (defun stream-decoding-error (stream octets) (error 'stream-decoding-error + :external-format (stream-external-format stream) :stream stream ;; FIXME: dunno how to get at OCTETS currently, or even if ;; that's the right thing to report. :octets octets)) (defun stream-encoding-error (stream code) (error 'stream-encoding-error + :external-format (stream-external-format stream) :stream stream :code code)) @@ -821,10 +823,10 @@ ;;; correct on win32. However, none of the places that use it require ;;; further assurance than "may" versus "will definitely not". (defun sysread-may-block-p (stream) - #+win32 + #!+win32 ;; This answers T at EOF on win32, I think. (not (sb!win32:fd-listen (fd-stream-fd stream))) - #-win32 + #!-win32 (sb!unix:with-restarted-syscall (count errno) (sb!alien:with-alien ((read-fds (sb!alien:struct sb!unix:fd-set))) (sb!unix:fd-zero read-fds)