On 24 December 2015 at 20:23, Eli Zaretskii <e...@gnu.org> wrote:
>> I'm trying to read the libc manual closely and, actually, it's
>> probably not necessary:
>>
>>      If all input from the input buffer is successfully converted and
>>      stored in the output buffer, the function returns the number of
>>      non-reversible conversions performed.  In all other cases the
>>      return value is `(size_t) -1' and `errno' is set appropriately.
>>
>> So if there's one character held back waiting for a following
>> combining character, there won't be a positive return value indicating
>> success.
>
> The manual is inaccurate.  It shouldn't say "and stored in the output
> buffer", or at least clarify that the last character is sometimes not
> stored until the flushing call.

I raised a bug for the manual here:
https://sourceware.org/bugzilla/show_bug.cgi?id=19404

Reply via email to