Index: /trunk/ccl/lib/streams.lisp
===================================================================
--- /trunk/ccl/lib/streams.lisp	(revision 5230)
+++ /trunk/ccl/lib/streams.lisp	(revision 5231)
@@ -130,5 +130,8 @@
 (defun write-byte (byte stream)
   "Write one byte, BYTE, to STREAM."
-  (stream-write-byte stream byte)
+  (if (typep stream 'basic-stream)
+    (let* ((ioblock (basic-stream-ioblock stream)))
+      (funcall (ioblock-write-byte-function ioblock) ioblock byte))
+    (stream-write-byte stream byte))
   byte)
 
