[Patch] Fix newlib/libc/stdio/fgetws.c issue

Yvan ROUX yvan.roux@st.com
Thu May 31 07:44:00 GMT 2012


Hi,

The actual behaviour of the fgetws function doesn't match with its specs as it
doesn't read *at most* n-1 wide characters until a newline, but *every* wide
character until a newline or in buffers if no newline are found. This patch 
fixes this issue.

Cheers,
Yvan

2012-05-30  Yvan Roux  <yvan.roux@st.com>

	* libc/stdio/fgetws.c: Fix the number of multibytes converted to
	wide-characters.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-fgetws.patch
Type: text/x-diff
Size: 975 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20120531/5962fb85/attachment.bin>


More information about the Newlib mailing list