[r6rs-discuss] Stateful codecs and inefficient transcoding
Shiro Kawai
shiro at lava.net
Tue Nov 7 19:56:40 EST 2006
From: Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl>
Subject: Re: [r6rs-discuss] Stateful codecs and inefficient transcoding
Date: Wed, 08 Nov 2006 01:21:09 +0100
> > However, if the underlying transcoder uses libiconv, the only way
> > to enforce the resetting is to call iconv_close(),
>
> No; when inbuf or *inbuf is NULL, the state is reset (which may cause
> to produce some output). This is in general necessary to use before
> finishing with the conversion; iconv_close doesn't include gathering
> output.
You're right. I have written code using that feature, but I
forgot it completely.
--shiro
More information about the r6rs-discuss
mailing list