Jianshi Huang <jianshi.huang@...> writes:
> Ineed to read from a utf-8 stream, but the inputs are not controlled
> by me and it contains malformed utf-8 byte sequences. SBCL will give
> me a stream-decoding-error and I tried to called the attempt-resync
> However, there are cases (though rare) that after several resync
> attempts, I got a type-error, which says a number that is not of type
> (MOD 1114112).
> Well, my question is, what's the recommended way to decode utf-8 stream in SBCL?
Like that (or using the other restarts), but to find and fix the bug
that causes a type error rather than a stream-decoding-error.