swprintf() and friends?

Corinna Vinschen vinschen@redhat.com
Fri Nov 7 16:34:00 GMT 2008

On Nov  3 16:26, Jeff Johnston wrote:
> For fwide support, I assume you mean two bits and yes, I believe two bits 
> would work.  One bit would mean decided (0 = undecided) and this should 
> take the free bit I mention above.  The __srefill_r and __sfvwrite_r 
> functions could be modified to stamp a file as being narrow/wide and 
> decided, if currently undecided (an extra argument would be needed to these 
> functions to say which type of fn was calling).  If setting and the file is 
> already undecided, then we must resolve any std stream first.  The decided 
> orientation bit would be in _flags (0 = narrow, 1 = wide).

On second reading... what do you mean by "resolve any std stream first"?


Corinna Vinschen
Cygwin Project Co-Leader
Red Hat

More information about the Newlib mailing list