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

Florian Weimer fw@deneb.enyo.de
Mon Mar 30 14:32:36 GMT 2020


* Andreas Schwab:

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

Sorry, I haven't looked at the situation in detail, to determine what
the best possible choice in the context of our own implementation.

I merely don't think we can rely on C or POSIX to provide guidance how
to support locales with these fake shift states.


More information about the Libc-alpha mailing list