public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/45156] New: codecvt doesn't update how much input it has consumed correctly @ 2010-08-01 3:02 loufoque at gmail dot com 2010-08-01 3:03 ` [Bug libstdc++/45156] " loufoque at gmail dot com 2010-08-01 13:41 ` loufoque at gmail dot com 0 siblings, 2 replies; 3+ messages in thread From: loufoque at gmail dot com @ 2010-08-01 3:02 UTC (permalink / raw) To: gcc-bugs With an UTF-8 locale, when using codecvt<wchar_t, char, mbstate_t> with the following input {0xc3, 0xa9, 0x20, 0xf0, 0xaa, 0x98} the function claims to have consumed all six bytes, albeit it has only returned relevant data for three bytes, the result being {0xe9, 0x20}. -- Summary: codecvt doesn't update how much input it has consumed correctly Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: loufoque at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45156 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libstdc++/45156] codecvt doesn't update how much input it has consumed correctly 2010-08-01 3:02 [Bug libstdc++/45156] New: codecvt doesn't update how much input it has consumed correctly loufoque at gmail dot com @ 2010-08-01 3:03 ` loufoque at gmail dot com 2010-08-01 13:41 ` loufoque at gmail dot com 1 sibling, 0 replies; 3+ messages in thread From: loufoque at gmail dot com @ 2010-08-01 3:03 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from loufoque at gmail dot com 2010-08-01 03:03 ------- Created an attachment (id=21365) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21365&action=view) testcase Requires LANG to be set to an appropriate UTF-8 locale. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45156 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libstdc++/45156] codecvt doesn't update how much input it has consumed correctly 2010-08-01 3:02 [Bug libstdc++/45156] New: codecvt doesn't update how much input it has consumed correctly loufoque at gmail dot com 2010-08-01 3:03 ` [Bug libstdc++/45156] " loufoque at gmail dot com @ 2010-08-01 13:41 ` loufoque at gmail dot com 1 sibling, 0 replies; 3+ messages in thread From: loufoque at gmail dot com @ 2010-08-01 13:41 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from loufoque at gmail dot com 2010-08-01 13:41 ------- My bad, this is actually normal, the additional bytes are put in the state and will be returned later. -- loufoque at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45156 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-01 13:41 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-08-01 3:02 [Bug libstdc++/45156] New: codecvt doesn't update how much input it has consumed correctly loufoque at gmail dot com 2010-08-01 3:03 ` [Bug libstdc++/45156] " loufoque at gmail dot com 2010-08-01 13:41 ` loufoque at gmail dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).