Update.
commit9c38a6899957746cbf2c0c04d110626a9271d51a
authorUlrich Drepper <drepper@redhat.com>
Thu, 20 Jul 2000 08:56:12 +0000 (20 08:56 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 20 Jul 2000 08:56:12 +0000 (20 08:56 +0000)
tree7baeb90b3aff1cf0acf63fed32577f3a9ad17764
parent4e8286acfa4224ac9ccfb07e90b8fd70fab1467e
Update.

2000-07-20  Ulrich Drepper  <drepper@redhat.com>

* libio/Makefile (tests): Add tst_wprintf2.
(tst_wprintf2-ARGS): Define.
* libio/tst_wprintf2.c: New file.
Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.

* libio/wfiledoalloc.c: Only allocate external buffer if this
hasn't happened yet.

* libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
something in the buffer.  gconv call can write up to end of the
buffer, not only _IO_write_end.
(_IO_wfile_overflow): Allocate also external buffer.

* stdio-common/vfprintf.c (process_string_arg): Handle multibyte
strings with precision in vfwprintf correctly.
* stdio-common/vfprintf.c: Fix completely broken handling of
unbuffered wide character streams.
Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
ChangeLog
libio/Makefile
libio/tst_wprintf2.c [new file with mode: 0644]
libio/wfiledoalloc.c
libio/wfileops.c
stdio-common/vfprintf.c