From: Paul K. <pk...@gm...> - 2008-12-18 07:48:30
|
On 17-Dec-08, at 8:32 PM, Thomas Russ wrote: > I discovered a bug in READ-SEQUENCE using the Darwin-x86 SBCL builds > 1.0.22 and 1.0.23 on the Mac. The bug is not present in build 1.0.12. > > Versions affected: sbcl-1.0.23-x86-darwin > sbcl-1.0.22-x86-darwin > Works correctly in: sbcl-1.0.12-x86-darwin > > The bug is that READ-SEQUENCE does not return the proper value when > reading from a file-input-stream anymore. Reading from a string > stream works correctly. Specifically, the READ-SEQUENCE incorrectly > returns the number of bytes/characters read rather than the ending > offset into the buffer. Thank you for the report. The bug has indeed been lurking since 1.0.12.21; AFAICT, only READ-SEQUENCE into strings is affected. Attached is a tiny patch against HEAD that fixes that issue. Unless someone else can do it, I'll try and commit the patch and your test case early next week. Paul Khuong |