This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Locale codecvt facet doesn't seem to return 'partial'



This works fine, resulting in the the widened form with the upside down
'!' and the en-yay; however, if I cut
the source string off at the first byte of the encoded en-yay:

std::string from("\xC2\xA1Hasta ma\xC3");

the codecvt facet in method still returns 'ok' and simply ignores the
incomplete UTF-8 sequence.  Shouldn't
it have returned 'partial'?

I would think either partial or error, but certainly not ok unless \xC3 is some other valid UTF8.


Can you file this is bugzilla please?

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]