------- Comment #7 from pcarlini at suse dot de  2007-04-22 01:06 -------
(In reply to comment #6)
> 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.

Indeed, that's the point. And this is DR 382, mentioned by Petur in various
places in the implementation.

  http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#382

We will revisit the issue when 382 gets a complete resolution.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-04-22 01:06:27
               date|                            |
            Summary|Codecvt facets with UTF-8   |[DR 382] Codecvt facets with
                   |encoding fail to recognize  |UTF-8 encoding fail to
                   |partial encoding sequences  |recognize partial encoding
                   |                            |sequences


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31643

Reply via email to