Re: Bug report: IllegalStateException, when reading after rewinding

Mark Evenson <[email protected]> Fri, 2 Oct 2020 00:36:40 +0200
Newsgroups gmane.editors.j.devel
Message-ID <[email protected]>

> On Sep 30, 2020, at 22:59, Mark Evenson <[email protected]> wrote:
> 
> 
> 
>> On Sep 30, 2020, at 03:01, Robert Munyer <[email protected]> wrote:
>> 
>> (with-open-file (in "hello.text")
>>             (list (read in)
>>                   (read in nil)
>>                   (file-position in :start)
>>                   (read in)))
> 
> Reproduced and filed as [ticket 473][1].
> 
> [1]: https://abcl.org/trac/ticket/473

Fixed with <https://abcl.org/trac/changeset/15386> aka <https://github.com/armedbear/abcl/pull/304>.

There is still probably a bit of wonkiness with reading unicode, and I have noticed that FLEXI-STREAMS fails some tests, but at least FILE-POSITION should be expected to work.

Thanks for the succint bug report!

-- 
"A screaming comes across the sky.  It has happened before but there is nothing 
to compare to it now."