Teemu Kalvas <chery@...> writes:
> It seems that FAST-READ-CHAR was rendered unused by a series of two
> unfortunate patches last year. I've re-enabled it, and it seems to
> still work despite not being used for a year.
> --- src/code/fd-stream.lisp 20 May 2004 14:47:54 -0000 1.46
> +++ src/code/fd-stream.lisp 16 Sep 2004 18:18:15 -0000
> @@ -803,7 +803,8 @@
> ;; (unsigned-byte 8). Because there's no buffer, the
> ;; other element-types will dispatch to the appropriate
> ;; input (output) routine in fast-read-byte.
> - (equal target-type '(unsigned-byte 8))
> + (or (subtypep type 'character)
> + (equal target-type '(unsigned-byte 8)))
> (or (eq type 'unsigned-byte)
> (eq type :default)))
The #+nil clause here was because the previous patch led to segfaults
on the PPC/Linux (I think, maybe PPC/Darwin) platform. This could
quite conceivably have been because of compiler bugs or bad kernel
versions or whatnot, but before merging this patch I'd like to hear a
report from a ppc user or two that it actually works for them. So if
you run sbcl on the powerpc, please test Teemu's patch and report
Get latest updates about Open Source Projects, Conferences and News.