This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: printf size requirement


Jeff Johnston <jjohnstn <at> redhat.com> writes:

> >
> > patch1:
> > 2007-04-24  Eric Blake  <ebb9 <at> byu.net>
> >
> > 	* libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
> > 	_MB_CAPABLE.
> >
> >   
> Yes to patch 1.  No to patch 2.  The iprintf function is not defined to 
> be small; it is defined to be printf sans floating-point support.  Thus, 
> you are changing the behavior unexpectedly for someone already using 
> iprintf on a multibyte-enabled platform.  I have no problems with using 
> alternate flags to achieve size reduction sets, but not this way.
> 

Got it :)  I'm glad I split it in two, then; and patch2 is now discarded from 
my local edits.  patch1 is applied.

-- 
Eric Blake



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]