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] | |
Of course, in that case, please provide a *self contained* testcase: to say one, in order to understand whether something is really going wrong we *must* know which specific locale you are using.I would think either partial or error, but certainly not ok unless \xC3 is some other valid UTF8.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'?
Can you file this is bugzilla please?
Thanks, Paolo.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |