getchar issues

Matt Lee
Tue Mar 11 21:59:00 GMT 2008

On Tue, Mar 11, 2008 at 12:13 PM, Jeff Johnston <> wrote:
> Matt,
>  Thanks for the analysis.  The solution is that __srget must call
> CHECK_INIT prior
> to calling __srefill_r.  This resolves fake stdin to stdin before
> accessing the read buffer.
> I have checked in a fix.  Please try it out.
> -- Jeff J.

Thanks Jeff. I will use this fix. Is it safe to assume that none of
the other STDIO calls (such as putchar) run into the same issue?

More information about the Newlib mailing list