[PATCH] Reset converter state after second wchar_t output (Bug 25734)

Carlos O'Donell carlos@redhat.com
Mon Mar 30 14:36:02 GMT 2020


On 3/30/20 10:28 AM, Andreas Schwab wrote:
> On Mär 30 2020, Florian Weimer wrote:
> 
>> I'm not sure if the C committee wants implementations to be able to
>> support Big5 (without Unicode changes first, to add characters which
>> avoid the two-codepoint special cases).
> 
> Are you saying mbrtowc should return -1 here?

No. That indicates an invalid multibyte sequence was found. The sequence
is not invalid. There are in fact no semantics that apply given the current
API design.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list