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

Andreas Schwab schwab@suse.de
Mon Mar 30 15:28:12 GMT 2020


On Mär 30 2020, Carlos O'Donell via Libc-alpha wrote:

> 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.

It is not representable, thus invalid.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list