[Bug libstdc++/31643] Codecvt facets with UTF-8 encoding fail to recognize partial encoding sequences
jcavalla at postini dot com
gcc-bugzilla@gcc.gnu.org
Fri Apr 20 21:59:00 GMT 2007
------- Comment #6 from jcavalla at postini dot com 2007-04-20 22:59 -------
I ran additional tests just to make sure that the shift state was valid across
calls, even though partial is not returned when a chunk ends in a partial
encoding sequence. I split several 2,3, and 4 byte UTF character sequences
across two calls to the codecvt in() method. Each time, the sequence was
correctly widened into 1 UTF-32 character code. Thus, the shift state appears
to be OK. Just the return value of 'ok' is incorrect.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31643
More information about the Gcc-bugs
mailing list