This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug stdio/17522] `fputws' errors out when writing wide characters to unbuffered stream


https://sourceware.org/bugzilla/show_bug.cgi?id=17522

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos at redhat dot com

--- Comment #2 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Andreas Schwab from comment #1)
> The problem is that an unbuffered stream has only room for a single byte
> buffer for code conversion.

This is a bug in tst-skeleton.c IMO, it should allocate a buffer large enough
for the test to succeed, but small enough that you still get output as quickly
as possible in the even of a crash.

Thus tst-skeleton.c needs to be enhanced to allow the test to define the size
of the stdout buffer it needs and then that can be allocated and passed to
setvbuf?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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