This is the mail archive of the newlib-cvs@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]

src/newlib ChangeLog libc/stdio/vfwprintf.c te ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	jjohnstn@sourceware.org	2011-07-15 17:20:16

Modified files:
	newlib         : ChangeLog 
	newlib/libc/stdio: vfwprintf.c 
Added files:
	newlib/testsuite/newlib.stdio: stdio.exp swprintf.c 

Log message:
	2011-07-15  Yufeng Zhang  <yufeng.zhang@arm.com>
	
	* libc/stdio/vfwprintf.c (wcvt): Add a new parameter len of type
	int.  *length is set to the value of (rev - digits) regardless
	of whether _MB_CAPABLE is defined or not.  Replace BUF with len
	in calling _mbsnrtowcs_r and also in the loop where _MB_CAPABLE
	is not defined.
	(_VFWPRINTF_R): Call wcvt with an extra argument.  Call wcvt
	again with allocated new buffer if buf is not large enough for
	the conversion.
	* testsuite/newlib.stdio/stdio.exp: New.
	* testsuite/newlib.stdio/swprintf.c: Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/ChangeLog.diff?cvsroot=src&r1=1.1620&r2=1.1621
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/stdio/vfwprintf.c.diff?cvsroot=src&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/testsuite/newlib.stdio/stdio.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/testsuite/newlib.stdio/swprintf.c.diff?cvsroot=src&r1=NONE&r2=1.1


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