--- 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
--- Comment #5 from jcavalla at postini dot com 2007-04-20 22:37 ---
1. Please note that 'g++' was used to compile, not 'gcc' as stated below.
Sorry.
2. I marked this bug 'major' instead or 'normal' because callers will not be
able to dete
--- Comment #4 from jcavalla at postini dot com 2007-04-20 22:32 ---
Created an attachment (id=13398)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13398&action=view)
Test results
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31643
--- Comment #3 from jcavalla at postini dot com 2007-04-20 22:31 ---
Created an attachment (id=13397)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13397&action=view)
Preprocessed intermediate file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31643
--- Comment #2 from jcavalla at postini dot com 2007-04-20 22:31 ---
Created an attachment (id=13396)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13396&action=view)
Original test case source file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31643
--- Comment #1 from jcavalla at postini dot com 2007-04-20 22:30 ---
Created an attachment (id=13395)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13395&action=view)
Verbose compilation output
Produced with:
g++ -v --save-temps -Wall -ansi -pedantic -g -o loc
in the source string (\xFF) at source position 7; however, the partial test
cases improperly ignore the partial encoding sequence (\xC3) at the end of the
partial test strings.
--
Summary: Codecvt facets with UTF-8 encoding fail to recognize
partial encoding sequences
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jcavalla at postini dot com
GCC target triplet: i386-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31643