This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] Don't error out writing a multibyte character to an unbuffered stream (bug 17522)
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 03 Nov 2014 14:47:36 -0500
- Subject: Re: [PATCH] Don't error out writing a multibyte character to an unbuffered stream (bug 17522)
- Authentication-results: sourceware.org; auth=none
- References: <mvm38a5kcyh dot fsf at hawking dot suse dot de> <5453B03B dot 6040908 at redhat dot com> <mvmr3xkis1f dot fsf at hawking dot suse dot de>
On 11/03/2014 03:53 AM, Andreas Schwab wrote:
> "Carlos O'Donell" <firstname.lastname@example.org> writes:
>> I expect it is unsupported to write a partial multi-byte character
>> to an unbuffered stream? You have nowhere to store the partial
>> character so you just return an error. Which makes sense to me,
>> but I wanted to be explicit.
> That question doesn't make sense to me. The wide character I/O
> functions write wide characters, which cannot be partial. In any case,
> there is no change in that behaviour in any way.
You are absolutely correct. I'm not sure what I was thinking. All of the
output is converting from wchar_t to mb, and a wchar_t is always a complete
You patch makes things better. Thanks for fixing things.