svn commit: r195637 - head/lib/libc/stdio

Navdeep Parhar nparhar at gmail.com
Tue Jul 14 06:47:32 UTC 2009


On Sun, Jul 12, 2009 at 6:09 AM, Ed Schouten<ed at freebsd.org> wrote:
> Author: ed
> Date: Sun Jul 12 13:09:43 2009
> New Revision: 195637
> URL: http://svn.freebsd.org/changeset/base/195637
>
> Log:
>  Fix fwrite() to return 0 when size or nmemb are zero.

Hello Ed,

This breaks buildworld.  This change itself compiles, but once the
system's libc has this fwrite (say, after an installworld), buildworld
on that system will fail.  mklocale does not like fwrite returning 0.
And who knows if there are other programs like this out there...

....
mklocale -o am_ET.UTF-8.out /usr/src/share/mklocale/am_ET.UTF-8.src
am_ET.UTF-8.out: Inappropriate ioctl for device
*** Error code 1
Stop in /usr/src/share/mklocale.
....


I've attached a patch to mklocale that will fix the problem.

Regards,
Navdeep
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mklocale.diff
Type: application/octet-stream
Size: 474 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20090714/6663fb3f/mklocale.obj


More information about the svn-src-all mailing list